This commit is contained in:
shoopea 2019-05-25 15:37:45 +08:00
parent d2b51de3a7
commit ca4bc33664
2 changed files with 10 additions and 1 deletions

4
def.go
View File

@ -173,6 +173,8 @@ const (
objTypeJob = 6
objTypeItem = 7
objTypeCastle = 8
objTypeFair = 9
objTypeUnion = 10
castleDeer = 1
castleDragon = 2
@ -250,6 +252,8 @@ const (
objSubTypeItemPart = 705
objSubTypeItemOther = 706
objSubTypeCastle = 801
objSubTypeFair = 901
objSubTypeUnion = 1001
objJobStatusNew = 0
objJobStatusPillageGo = 1

7
obj.go
View File

@ -1,5 +1,10 @@
package main
import (
"strconv"
"time"
)
var (
cacheObjCastle map[string]ChatWarsCastle
cacheObjGuild map[string]ChatWarsGuild
@ -170,7 +175,7 @@ func loadObjCastle() error {
defer castles.Close()
for castles.Next() {
err = rules.Scan(&id, &logo, &name)
err = castles.Scan(&id, &logo, &name)
if err != nil {
return err
}