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 {
|
||||
case "forest":
|
||||
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
||||
case "montains":
|
||||
cwm.QuestTypeID64 = cacheObjSubType[`quest_montain`]
|
||||
default:
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : no reference for quest `%s`\n", quest)
|
||||
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()
|
||||
cacheObjItemId[c.ObjID64] = *c
|
||||
defer muxObjItemId.Unlock()
|
||||
muxObjItemId.Unlock()
|
||||
|
||||
return objId, nil
|
||||
}
|
||||
@ -979,6 +979,14 @@ func loadObjItem2() error {
|
||||
}
|
||||
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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user