upd
This commit is contained in:
parent
13579fa786
commit
111387f876
2
def.go
2
def.go
@ -223,7 +223,7 @@ type ChatWarsMessageGRolesAck struct {
|
||||
|
||||
type ChatWarsMessageGoQuestAck struct {
|
||||
Msg *ChatWarsMessage `json:"msg"`
|
||||
QuestTypeID int `json:"quest"`
|
||||
QuestTypeID64 int64 `json:"quest"`
|
||||
Duration time.Duration `json:"duration"`
|
||||
}
|
||||
|
||||
|
4
msg.go
4
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user