update items
This commit is contained in:
parent
7c5d823c72
commit
5d76fcd8ec
5
item.go
5
item.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user