From a889309879fbb76a3a2ca81588b11cfcbc9c1438 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 26 Jan 2020 16:31:47 +0800 Subject: [PATCH] test --- data/obj_item.json | 8 ++++---- def.go | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/data/obj_item.json b/data/obj_item.json index 48028fa..9d3306a 100644 --- a/data/obj_item.json +++ b/data/obj_item.json @@ -5472,15 +5472,15 @@ "Phoenix Sword" ], "craft": { - "cmd": "/craft_w98", + "cmd": "/craft_w93", "mana": 800, "items": [ { - "item": "r98", + "item": "r93", "quantity": 1 }, { - "item": "k98", + "item": "k93", "quantity": 6 }, { @@ -5532,7 +5532,7 @@ "mana": 800, "items": [ { - "item": "r98", + "item": "r94", "quantity": 1 }, { diff --git a/def.go b/def.go index 823e132..2e0dacb 100644 --- a/def.go +++ b/def.go @@ -129,13 +129,13 @@ type ChatWarsUser struct { type ChatWarsItem struct { ObjID64 int64 ItemTypeID int64 - ItemType string `json:"item_type"` - Code string `json:"code"` - Names []string `json:"names"` - Weight int64 `json:"weight"` - Exchange string `json:"exchange"` - Auction bool `json:"auction"` - Craft ChatWarsItemCraft `json:"craft"` + ItemType string `json:"item_type"` + Code string `json:"code"` + Names []string `json:"names"` + Weight int64 `json:"weight"` + Exchange string `json:"exchange"` + Auction bool `json:"auction"` + Craft *ChatWarsItemCraft `json:"craft"` } type ChatWarsItemCraft struct {