Replace hardcoded TZ offset with AOB scan

This commit is contained in:
CarlPoppa
2025-10-17 13:20:18 +01:00
parent 5731cd1687
commit aebef7b721

View File

@@ -5,7 +5,7 @@ import (
)
func (gd *GameReader) TerrorZones() (areas []area.ID) {
tzPtr := uintptr(gd.ReadUInt(gd.moduleBaseAddressPtr+tzOnline, Uint64))
tzPtr := uintptr(gd.ReadUInt(gd.moduleBaseAddressPtr+gd.offset.TZ, Uint64))
for i := 0; i < 8; i++ {
tzArea := gd.ReadUInt(tzPtr+uintptr(i*Uint32), Uint32)