From 0c6a2c17ab48596d4bd02432797f47fcdb43ec19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gim=C3=A9nez?= Date: Wed, 8 May 2024 23:10:00 +0900 Subject: [PATCH] remove full stats from the modifier --- pkg/memory/item.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/memory/item.go b/pkg/memory/item.go index 6ebcf28..fcc4057 100644 --- a/pkg/memory/item.go +++ b/pkg/memory/item.go @@ -161,10 +161,9 @@ func (gd *GameReader) getItemStats(statsListExPtr uintptr) (stat.Stats, stat.Sta return baseStats, fullStats } } - modifierStats := gd.getStatsList(statListPrev + 0x88) modifierBaseStats := gd.getStatsList(statListPrev + 0x30) - if len(modifierStats) != 0 || len(modifierBaseStats) != 0 { + if len(modifierBaseStats) != 0 { for _, mStat := range modifierBaseStats { if _, found := fullStats.FindStat(mStat.ID, mStat.Layer); !found { fullStats = append(fullStats, mStat)