update offset

This commit is contained in:
vietdungdev
2026-05-22 19:24:21 +07:00
parent b6fbaa7acf
commit 28da1b9a35
7 changed files with 239 additions and 31 deletions

View File

@@ -384,8 +384,11 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, merc OwnMercenary
// Set runeword name if applicable
if itm.IsRuneword {
if runeword, exists := item.RunewordIDMap[prefixes[0]]; exists {
itm.RunewordName = runeword
for _, prefixID := range prefixes {
if runeword, exists := item.RunewordIDMap[prefixID]; exists {
itm.RunewordName = runeword
break
}
}
if itm.RunewordName == "" || itm.RunewordName == item.RunewordHustle {
@@ -546,7 +549,7 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, merc OwnMercenary
func (gd *GameReader) getItemStats(statsListExPtr uintptr) (stat.Stats, stat.Stats) {
// Initial full and base stats extraction
fullStats := gd.getStatsList(statsListExPtr + 0xA8)
fullStats := gd.getStatsList(statsListExPtr + 0xE8)
baseStats := gd.getStatsList(statsListExPtr + 0x30)
// Create empty LevelRequire stat .We will update it from inventory