upd
This commit is contained in:
parent
13579fa786
commit
111387f876
6
def.go
6
def.go
@ -222,9 +222,9 @@ type ChatWarsMessageGRolesAck struct {
|
||||
}
|
||||
|
||||
type ChatWarsMessageGoQuestAck struct {
|
||||
Msg *ChatWarsMessage `json:"msg"`
|
||||
QuestTypeID int `json:"quest"`
|
||||
Duration time.Duration `json:"duration"`
|
||||
Msg *ChatWarsMessage `json:"msg"`
|
||||
QuestTypeID64 int64 `json:"quest"`
|
||||
Duration time.Duration `json:"duration"`
|
||||
}
|
||||
|
||||
type ChatWarsMessageQuestResult struct {
|
||||
|
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