new armors t5

This commit is contained in:
shoopea 2020-04-21 20:15:06 +08:00
parent 0aaab43dee
commit ab4f8488b5
2 changed files with 112 additions and 3 deletions

View File

@ -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
}
]
}
}
]

View File

@ -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