fix skill level

This commit is contained in:
guiyomu-dev
2026-02-14 18:26:58 +01:00
parent 15a2884ec6
commit c19cbe348c
2 changed files with 5 additions and 8 deletions

View File

@@ -27,7 +27,6 @@ type Skill struct {
type Points struct {
Level uint
Quantity uint
Charges uint
}

View File

@@ -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
@@ -199,7 +198,6 @@ 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,
}
}