fix ambush

This commit is contained in:
shoopea 2019-10-20 20:22:29 +08:00
parent 3bc36fec28
commit 16edab823d

3
msg.go
View File

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