IsCorpse Offset (#52)

Update corpse offset
This commit is contained in:
elb
2024-12-07 16:52:22 -05:00
committed by GitHub
parent aecd76dcb7
commit 89a1b3ca26

View File

@@ -21,7 +21,7 @@ func (gd *GameReader) Monsters(playerPosition data.Position, hover data.HoverDat
monsterUnitPtr := uintptr(ReadUIntFromBuffer(unitTableBuffer, uint(monsterOffset), Uint64))
for monsterUnitPtr > 0 {
// Quick corpse check first
isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1A6, Uint8)
isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1AE, Uint8)
if isCorpse != 0 {
monsterUnitPtr = uintptr(gd.Process.ReadUInt(monsterUnitPtr+0x158, Uint64))
continue
@@ -90,7 +90,7 @@ func (gd *GameReader) Corpses(playerPosition data.Position, hover data.HoverData
monsterOffset := 8 * i
monsterUnitPtr := uintptr(ReadUIntFromBuffer(unitTableBuffer, uint(monsterOffset), Uint64))
for monsterUnitPtr > 0 {
isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1A6, Uint8)
isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1AE, Uint8)
if isCorpse == 0 {
monsterUnitPtr = uintptr(gd.Process.ReadUInt(monsterUnitPtr+0x158, Uint64))
continue