remove unecessary code due to bad game update

This commit is contained in:
guiyomu-dev
2026-02-14 23:59:20 +01:00
parent eb0948dbea
commit 50eb39853c
7 changed files with 11 additions and 68 deletions

View File

@@ -106,17 +106,6 @@ func run() error {
import "strings"
const (
ExpCharItemIDThreshold = 508
ExpCharItemIDOffset = 15
)
var ExpChar uint16
func SetExpChar(expChar uint16) {
ExpChar = expChar
}
const (
ScrollOfTownPortal = "ScrollOfTownPortal"
ScrollOfIdentify = "ScrollOfIdentify"
@@ -126,22 +115,12 @@ const (
)
func GetNameByEnum(itemNumber uint) Name {
idx := int(itemNumber)
if ExpChar >= 3 && idx >= ExpCharItemIDThreshold {
idx += ExpCharItemIDOffset
}
if idx < 0 || idx >= len(Names) {
return Name("")
}
return Name(Names[idx])
return Name(Names[itemNumber])
}
func GetIDByName(itemName string) int {
for i, name := range Names {
if strings.EqualFold(name, itemName) {
if ExpChar >= 3 && i >= ExpCharItemIDThreshold+ExpCharItemIDOffset {
return i - ExpCharItemIDOffset
}
return i
}
}
@@ -151,7 +130,6 @@ func GetIDByName(itemName string) int {
type Name string
var Names = []string{
`)
for _, n := range names {