fixed following patch (#50)

This commit is contained in:
joffreybesos
2024-12-06 16:54:59 +10:00
committed by GitHub
parent 2eeee0cf1f
commit 2270b7c621
4 changed files with 11 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
statsListExPtr := uintptr(gd.Process.ReadUInt(playerUnit+0x88, Uint64))
baseStats := gd.getStatsList(statsListExPtr + 0x30)
stats := gd.getStatsList(statsListExPtr + 0x88)
stats := gd.getStatsList(statsListExPtr + 0xA8)
states := gd.GetStates(statsListExPtr)
playerMode := mode.PlayerMode(gd.Process.ReadUInt(playerUnit+0x0c, Uint32))
@@ -66,7 +66,7 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
BaseStats: baseStats,
Mode: playerMode,
})
playerUnit = uintptr(gd.Process.ReadUInt(playerUnit+0x150, Uint64))
playerUnit = uintptr(gd.Process.ReadUInt(playerUnit+0x158, Uint64))
}
}
@@ -148,7 +148,7 @@ func (gd *GameReader) GetStates(statsListExPtr uintptr) state.States {
var states state.States
for i := 0; i < 6; i++ {
offset := i * 4
stateByte := gd.Process.ReadUInt(statsListExPtr+0xAD0+uintptr(offset), Uint32)
stateByte := gd.Process.ReadUInt(statsListExPtr+0xAF0+uintptr(offset), Uint32)
offset = (32 * i) - 1
states = append(states, calculateStates(stateByte, uint(offset))...)