fix ambush

This commit is contained in:
shoopea 2019-10-20 20:22:50 +08:00
parent 16edab823d
commit 0c52a28cb3

2
msg.go
View File

@ -441,7 +441,7 @@ func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp)
log.Printf("parseSubTypeMessageQuestResultAmbush : lvl : %d\n", lvl) log.Printf("parseSubTypeMessageQuestResultAmbush : lvl : %d\n", lvl)
qty, _ := strconv.ParseInt(l[1], 10, 64) qty, _ := strconv.ParseInt(l[1], 10, 64)
log.Printf("parseSubTypeMessageQuestResultAmbush : qty : %d\n", qty) log.Printf("parseSubTypeMessageQuestResultAmbush : qty : %d\n", qty)
level = level + lvl*qty level = level + float64(lvl*qty)
} }
cwm.Msg = m cwm.Msg = m
return &cwm, nil return &cwm, nil