testtest
This commit is contained in:
parent
aed75d7084
commit
29fe2a1ff8
6
obj.go
6
obj.go
@ -664,14 +664,12 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
|
|||||||
func getObjItemID(c string, n string) int64 {
|
func getObjItemID(c string, n string) int64 {
|
||||||
i := silentGetObjItemID(c, n)
|
i := silentGetObjItemID(c, n)
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
/*
|
|
||||||
w := TGCommand{
|
w := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n),
|
Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n),
|
||||||
ToUserID64: cfg.Bot.Admin,
|
ToUserID64: cfg.Bot.Admin,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- w
|
TGCmdQueue <- w
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
@ -727,14 +725,16 @@ func silentGetObjItemID(code string, name string) int64 {
|
|||||||
|
|
||||||
})
|
})
|
||||||
if item.ObjID64 != 0 && match {
|
if item.ObjID64 != 0 && match {
|
||||||
log.Printf("RETURN : Matching item modified basename %s with %s (%d).\n", basename, item.Name, item.ObjID64)
|
//log.Printf("RETURN : Matching item modified basename %s with %s (%d).\n", basename, item.Name, item.ObjID64)
|
||||||
return item.ObjID64
|
return item.ObjID64
|
||||||
} else {
|
} else {
|
||||||
|
/*
|
||||||
fmt.Printf("silentGetObjItemID : Modifier : `%s`\n", r.ReplaceAllString(name, "${Modifier}"))
|
fmt.Printf("silentGetObjItemID : Modifier : `%s`\n", r.ReplaceAllString(name, "${Modifier}"))
|
||||||
fmt.Printf("silentGetObjItemID : BaseName : `%s`\n", r.ReplaceAllString(name, "${BaseName}"))
|
fmt.Printf("silentGetObjItemID : BaseName : `%s`\n", r.ReplaceAllString(name, "${BaseName}"))
|
||||||
fmt.Printf("silentGetObjItemID : Atk : `%s`\n", r.ReplaceAllString(name, "${Atk}"))
|
fmt.Printf("silentGetObjItemID : Atk : `%s`\n", r.ReplaceAllString(name, "${Atk}"))
|
||||||
fmt.Printf("silentGetObjItemID : Def : `%s`\n", r.ReplaceAllString(name, "${Def}"))
|
fmt.Printf("silentGetObjItemID : Def : `%s`\n", r.ReplaceAllString(name, "${Def}"))
|
||||||
fmt.Printf("silentGetObjItemID : Mana : `%s`\n", r.ReplaceAllString(name, "${Mana}"))
|
fmt.Printf("silentGetObjItemID : Mana : `%s`\n", r.ReplaceAllString(name, "${Mana}"))
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user