From 2b2eead1353e60bb26cb403c584f3b150127707b Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 27 Jun 2020 15:35:41 +0200 Subject: [PATCH] test --- item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/item.go b/item.go index 443e1e0..1081384 100644 --- a/item.go +++ b/item.go @@ -136,7 +136,7 @@ func getSilentObjItemID(code string, name string) int64 { return objItems[id].ObjID64 } if ok, _ := regexp.MatchString(`^((u|e)[0-9]+|(a|w)[0-9]+[a-e]{0,1})$`, code); ok || len(code) == 0 { - if ok, _ := regexp.MatchString(`^(Mystery|Unidentified) (amulet|ring) lvl.[0-9]+$`); ok { + if ok, _ := regexp.MatchString(`^(Mystery|Unidentified) (amulet|ring) lvl.[0-9]+$`, name); ok { return objItems[cacheObjItem[`u000`]].ObjID64 }