test
This commit is contained in:
parent
d2b51de3a7
commit
ca4bc33664
4
def.go
4
def.go
@ -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
7
obj.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user