From c19cbe348caff17c8ae5ed33e8dba9b333fd6ad9 Mon Sep 17 00:00:00 2001 From: guiyomu-dev <22749537+guiyomu-dev@users.noreply.github.com> Date: Sat, 14 Feb 2026 18:26:58 +0100 Subject: [PATCH] fix skill level --- pkg/data/skill/skill.go | 5 ++--- pkg/memory/player.go | 8 +++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pkg/data/skill/skill.go b/pkg/data/skill/skill.go index 06379ca..d60a8a8 100644 --- a/pkg/data/skill/skill.go +++ b/pkg/data/skill/skill.go @@ -26,9 +26,8 @@ type Skill struct { } type Points struct { - Level uint - Quantity uint - Charges uint + Level uint + Charges uint } func (skillId ID) Desc() Description { diff --git a/pkg/memory/player.go b/pkg/memory/player.go index 7ea40a9..929bcb7 100644 --- a/pkg/memory/player.go +++ b/pkg/memory/player.go @@ -184,8 +184,7 @@ func (gd *GameReader) getSkills(skillListPtr uintptr) map[skill.ID]skill.Points for skillPtr != 0 { skillTxtPtr := uintptr(gd.Process.ReadUInt(skillPtr, Uint64)) skillTxt := uintptr(gd.Process.ReadUInt(skillTxtPtr, Uint16)) - lvl := gd.Process.ReadUInt(skillPtr+0x38, Uint16) - quantity := gd.Process.ReadUInt(skillPtr+0x40, Uint16) + lvl := gd.Process.ReadUInt(skillPtr+0x40, Uint16) charges := gd.Process.ReadUInt(skillPtr+0x48, Uint16) shouldSetSkill := true @@ -198,9 +197,8 @@ func (gd *GameReader) getSkills(skillListPtr uintptr) map[skill.ID]skill.Points if shouldSetSkill { skills[skill.ID(skillTxt)] = skill.Points{ - Level: lvl, - Quantity: quantity, - Charges: charges, + Level: lvl, + Charges: charges, } }