update offset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user