test
This commit is contained in:
parent
9c35faae13
commit
2d05776878
2
obj.go
2
obj.go
@ -526,7 +526,7 @@ func silentGetObjItemID(code string, name string) int64 {
|
|||||||
return i.ObjID64
|
return i.ObjID64
|
||||||
}
|
}
|
||||||
if ok, _ := regexp.MatchString(`(u|a|e)[0-9]+`, c); ok {
|
if ok, _ := regexp.MatchString(`(u|a|e)[0-9]+`, c); ok {
|
||||||
r := regexp.MustCompile(`^((?P<Modifier>⚡\+[0-9]+) ){0,1}(?P<BaseName>[a-zA-Z ]+?)( \+(?P<Atk>[0-9]+)⚔){0,1}( \+(?P<Def>[0-9]+)🛡){0,1}( \+(?P<Mana>[0-9]+)💧){0,1}$`)
|
r := regexp.MustCompile(`^((?P<Modifier>⚡\+[0-9]+) ){0,1}(?P<BaseName>[a-zA-Z ']+?)( \+(?P<Atk>[0-9]+)⚔){0,1}( \+(?P<Def>[0-9]+)🛡){0,1}( \+(?P<Mana>[0-9]+)💧){0,1}$`)
|
||||||
n2 := r.ReplaceAllString(n, "${BaseName}")
|
n2 := r.ReplaceAllString(n, "${BaseName}")
|
||||||
if v, ok := cacheObjItem.Load(n2); ok {
|
if v, ok := cacheObjItem.Load(n2); ok {
|
||||||
i := v.(ChatWarsItem)
|
i := v.(ChatWarsItem)
|
||||||
|
Loading…
Reference in New Issue
Block a user