test
This commit is contained in:
parent
0bd8ba4d9a
commit
fe04aa0a50
2
msg.go
2
msg.go
@ -360,6 +360,8 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW
|
|||||||
switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest {
|
switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest {
|
||||||
case "forest":
|
case "forest":
|
||||||
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
||||||
|
case "montains":
|
||||||
|
cwm.QuestTypeID64 = cacheObjSubType[`quest_montain`]
|
||||||
default:
|
default:
|
||||||
log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest)
|
log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest)
|
||||||
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
||||||
|
10
obj.go
10
obj.go
@ -849,7 +849,7 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int64, exch
|
|||||||
|
|
||||||
muxObjItemId.Lock()
|
muxObjItemId.Lock()
|
||||||
cacheObjItemId[c.ObjID64] = *c
|
cacheObjItemId[c.ObjID64] = *c
|
||||||
defer muxObjItemId.Unlock()
|
muxObjItemId.Unlock()
|
||||||
|
|
||||||
return objId, nil
|
return objId, nil
|
||||||
}
|
}
|
||||||
@ -979,6 +979,14 @@ func loadObjItem2() error {
|
|||||||
}
|
}
|
||||||
log.Printf("%d items loaded.\n", len(items))
|
log.Printf("%d items loaded.\n", len(items))
|
||||||
|
|
||||||
|
muxObjItemId.Lock()
|
||||||
|
for _, v := range cacheObjItemId {
|
||||||
|
for _, n := range v.Names {
|
||||||
|
log.Printf("loadObjItem2[%d] : %s : %s.\n", v.ObjID64, v.Names[0], n)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
muxObjItemId.Unlock()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user