From 8203394c9fc1eb6759c996ecaf6434ebe49dabd5 Mon Sep 17 00:00:00 2001 From: Arto Simonyan Date: Mon, 23 Dec 2024 19:51:50 +0200 Subject: [PATCH] Revert "Update missing itemstat offset (#65)" (#66) This reverts commit 5eae82b847edba20612e25a811bf5e4777b2d607. --- 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 addf7be..f03b82b 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, 0xA8, Uint64)) + statsListExPtr := uintptr(ReadUIntFromBuffer(itemDataBuffer, 0x88, Uint64)) baseStats, stats := gd.getItemStats(statsListExPtr) itm.Stats = stats itm.BaseStats = baseStats