test
This commit is contained in:
parent
1e3d5fe557
commit
edc2a6f67f
8
msg.go
8
msg.go
@ -171,7 +171,13 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : Place : %s\n", r.ReplaceAllString(m.Text, "${Place}"))
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : Time : %s\n", r.ReplaceAllString(m.Text, "${Time}"))
|
||||
*/
|
||||
cwm.Quest = strings.ToLower(r.ReplaceAllString(m.Text, "${Place}"))
|
||||
switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest {
|
||||
case "forest":
|
||||
cwm.QuestTypeID = objSubTypeQuestForest
|
||||
default:
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest)
|
||||
cwm.QuestTypeID = objSubTypeQuestForest
|
||||
}
|
||||
i, err := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Time}"), 10, 64)
|
||||
if err != nil {
|
||||
cwm.Duration = time.Duration(i) * time.Minute
|
||||
|
Loading…
Reference in New Issue
Block a user