test
This commit is contained in:
parent
8ce47d626a
commit
45d8d3bf0a
3
item.go
3
item.go
@ -208,7 +208,6 @@ func setObjItemCraft(objID64 int64, cmd string, mana int64) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func emptyObjItemCraftItem(objID64 int64) error {
|
func emptyObjItemCraftItem(objID64 int64) error {
|
||||||
log.Printf("emptyObjItemCraftItem[%d] : starting..\n", objID64)
|
|
||||||
stmt, err := db.Prepare(`DELETE FROM obj_craft_item WHERE obj_id = ?;`)
|
stmt, err := db.Prepare(`DELETE FROM obj_craft_item WHERE obj_id = ?;`)
|
||||||
logOnError(err, "emptyObjItemCraftItem : prepare delete obj_craft_item")
|
logOnError(err, "emptyObjItemCraftItem : prepare delete obj_craft_item")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -221,7 +220,6 @@ func emptyObjItemCraftItem(objID64 int64) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Printf("emptyObjItemCraftItem[%d] : done..\n", objID64)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,7 +355,6 @@ func loadObjItem() error {
|
|||||||
if id, ok := cacheObjItem[o.Code]; !ok {
|
if id, ok := cacheObjItem[o.Code]; !ok {
|
||||||
log.Printf("loadObjItem : %s : unknown item %s for recipe.\n", objItems[i].Code, o.Code)
|
log.Printf("loadObjItem : %s : unknown item %s for recipe.\n", objItems[i].Code, o.Code)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("loadObjItem : %s : adding %s (%d) to the recipe.\n", objItems[i].Code, o.Code, o.Quantity)
|
|
||||||
objItems[i].Craft.Items[k].ItemID64 = objItems[id].ObjID64
|
objItems[i].Craft.Items[k].ItemID64 = objItems[id].ObjID64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user