diff --git a/def.go b/def.go index 3031ca9..c65b9ba 100644 --- a/def.go +++ b/def.go @@ -222,9 +222,9 @@ type ChatWarsMessageGRolesAck struct { } type ChatWarsMessageGoQuestAck struct { - Msg *ChatWarsMessage `json:"msg"` - QuestTypeID int `json:"quest"` - Duration time.Duration `json:"duration"` + Msg *ChatWarsMessage `json:"msg"` + QuestTypeID64 int64 `json:"quest"` + Duration time.Duration `json:"duration"` } type ChatWarsMessageQuestResult struct { diff --git a/msg.go b/msg.go index 02013c3..ada89b2 100644 --- a/msg.go +++ b/msg.go @@ -353,10 +353,10 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW */ switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest { case "forest": - cwm.QuestTypeID = cacheObjSubType[`quest_forest`] + cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`] default: log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest) - cwm.QuestTypeID = cacheObjSubType[`quest_forest`] + cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`] } i, err := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Time}"), 10, 64) if err != nil {