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

7
obj.go
View File

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