update items

This commit is contained in:
shoopea 2020-04-18 11:46:37 +08:00
parent 7c5d823c72
commit 5d76fcd8ec

View File

@ -293,6 +293,7 @@ func loadObjItem() error {
objItems = make([]ChatWarsItem, 0)
for _, a := range AssetNames() {
log.Printf("Trying loading from %s.\n", a)
m, err := regexp.MatchString("data/obj_item/.*\\.json", a)
logOnError(err, "loadObjItem : MatchString")
if m {
@ -409,10 +410,12 @@ func loadObjItem() error {
}
}
log.Printf("%d items loaded for %s.\n", len(objItems), a)
log.Printf("items loaded for %s.\n", a)
}
}
log.Printf("%d items loaded for %s.\n", len(objItems))
/*
for _, v := range cacheObjItemId {
log.Printf("Item cached : %d\n", v.ObjID64)