This commit is contained in:
shoopea 2020-01-12 21:41:46 +08:00
parent cc22218042
commit 30a3cfffb5
2 changed files with 521 additions and 550 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,32 +1,3 @@
package main
import ()
/*
func reloadObjItem(code string, name string, itemTypeID64 int64, weight int64, exchange string, auction bool) {
var objID64 int64
objID64 = getSilentObjItemID(code, ``)
if objID64 == 0 {
id, err := addObjItem(code, name, itemTypeID64, weight, exchange, auction)
objID64 = id
logOnError(err, "reloadObjItem : addObjItem")
}
if getSilentObjItemID(``, name) == 0 {
//log.Printf("Adding %s to %d.\n", name, objID64)
objAddName(objID64, name)
c := new(ChatWarsItem)
c.ObjID64 = objID64
c.ItemTypeID = itemTypeID64
c.Code = code
c.Names = append(c.Names, name)
c.Weight = weight
c.Exchange = exchange
c.Auction = auction
muxObjItem.Lock()
cacheObjItem[name] = *c
muxObjItem.Unlock()
}
}
*/