player.go Corpse offset (#53)

This commit is contained in:
elb
2024-12-07 17:39:19 -05:00
committed by GitHub
parent 89a1b3ca26
commit 823a0a05b0

View File

@@ -42,7 +42,7 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
if expChar > 0 { if expChar > 0 {
isMainPlayer = gd.Process.ReadUInt(inventoryAddr+0x70, Uint16) isMainPlayer = gd.Process.ReadUInt(inventoryAddr+0x70, Uint16)
} }
isCorpse := gd.Process.ReadUInt(playerUnit+0x1A6, Uint8) isCorpse := gd.Process.ReadUInt(playerUnit+0x1AE, Uint8)
statsListExPtr := uintptr(gd.Process.ReadUInt(playerUnit+0x88, Uint64)) statsListExPtr := uintptr(gd.Process.ReadUInt(playerUnit+0x88, Uint64))
baseStats := gd.getStatsList(statsListExPtr + 0x30) baseStats := gd.getStatsList(statsListExPtr + 0x30)