From 5eae82b847edba20612e25a811bf5e4777b2d607 Mon Sep 17 00:00:00 2001 From: elb <51070858+elobo91@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:59:01 -0500 Subject: [PATCH] Update missing itemstat offset (#65) --- pkg/memory/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/memory/item.go b/pkg/memory/item.go index f03b82b..addf7be 100644 --- a/pkg/memory/item.go +++ b/pkg/memory/item.go @@ -157,7 +157,7 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD // We don't care about the inventory we don't know where they are, probably previous games or random crap if location != item.LocationUnknown { // Item Stats - statsListExPtr := uintptr(ReadUIntFromBuffer(itemDataBuffer, 0x88, Uint64)) + statsListExPtr := uintptr(ReadUIntFromBuffer(itemDataBuffer, 0xA8, Uint64)) baseStats, stats := gd.getItemStats(statsListExPtr) itm.Stats = stats itm.BaseStats = baseStats