diff --git a/data/obj_item/03.t5.armor.json b/data/obj_item/03.t5.armor.json index 01b9147..e48bcf4 100644 --- a/data/obj_item/03.t5.armor.json +++ b/data/obj_item/03.t5.armor.json @@ -51,7 +51,8 @@ } ] } - },{ + }, + { "item_type": "item_other", "code": "a104", "weight": 530, @@ -103,5 +104,115 @@ } ] } + }, + { + "item_type": "item_other", + "code": "a105", + "weight": 530, + "exchange": "", + "auction": true, + "craftable": true, + "names": [ + "Discarnate Robe" + ], + "craft": { + "cmd": "/craft_a105", + "mana": 800, + "items": [ + { + "code": "r121", + "quantity": 1 + }, + { + "code": "k121", + "quantity": 8 + }, + { + "code": "17", + "quantity": 30 + }, + { + "code": "15", + "quantity": 20 + }, + { + "code": "28", + "quantity": 17 + }, + { + "code": "21", + "quantity": 15 + }, + { + "code": "36", + "quantity": 11 + }, + { + "code": "38", + "quantity": 3 + } + ] + } + }, + { + "item_type": "item_other", + "code": "a106", + "weight": -1, + "exchange": "", + "auction": true, + "craftable": true, + "names": [ + "Manticore Helmet" + ], + "craft": { + "cmd": "/craft_a106", + "mana": 800, + "items": [ + { + "code": "r113", + "quantity": 1 + }, + { + "code": "k113", + "quantity": 8 + }, + { + "code": "22", + "quantity": 21 + }, + { + "code": "35", + "quantity": 17 + }, + { + "code": "28", + "quantity": 11 + }, + { + "code": "17", + "quantity": 9 + }, + { + "code": "21", + "quantity": 9 + }, + { + "code": "36", + "quantity": 3 + }, + { + "code": "16", + "quantity": 2 + }, + { + "code": "38", + "quantity": 1 + }, + { + "code": "15", + "quantity": 1 + } + ] + } } ] \ No newline at end of file diff --git a/item.go b/item.go index ba834fc..18defca 100644 --- a/item.go +++ b/item.go @@ -394,9 +394,7 @@ func loadObjItem() error { log.Printf("Loading existing names done...\n") for _, i := range cacheObjItem { - log.Printf("Accessing objItems[%d]\n", i) if objItems[i].ObjID64 == 0 { - log.Printf("loadObjItem : adding %s (%s)\n", objItems[i].Names[0], objItems[i].Code) id, err := addObjItem(objItems[i].Code, objItems[i].Names[0], objItems[i].ItemTypeID, objItems[i].Weight, objItems[i].Exchange, objItems[i].Auction, objItems[i].Craftable) logOnError(err, "loadObjItem : addObjItem") objItems[i].ObjID64 = id