fix ambush
This commit is contained in:
parent
3bc36fec28
commit
16edab823d
3
msg.go
3
msg.go
@ -428,7 +428,7 @@ func parseSubTypeMessageDuelFight(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageQuestResultAmbush, error) {
|
func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageQuestResultAmbush, error) {
|
||||||
//var level float64
|
var level float64
|
||||||
|
|
||||||
cwm := ChatWarsMessageQuestResultAmbush{}
|
cwm := ChatWarsMessageQuestResultAmbush{}
|
||||||
|
|
||||||
@ -441,6 +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
|
||||||
}
|
}
|
||||||
cwm.Msg = m
|
cwm.Msg = m
|
||||||
return &cwm, nil
|
return &cwm, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user