This commit is contained in:
shoopea 2020-01-12 21:43:15 +08:00
parent 30a3cfffb5
commit 64ab463a92

4
msg.go
View File

@ -360,8 +360,8 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW
switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest { switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest {
case "forest": case "forest":
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`] cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
case "montains": case "mountains":
cwm.QuestTypeID64 = cacheObjSubType[`quest_montain`] cwm.QuestTypeID64 = cacheObjSubType[`quest_mountains`]
default: default:
log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest) log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest)
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`] cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]