* Update data.go

Added corpses check

* Update game_reader.go

Added corpse finder function

* Update monsters.go

added corpse finder function
This commit is contained in:
TDL
2024-08-10 13:02:36 +02:00
committed by GitHub
parent 938bfeb753
commit 8e67284940
3 changed files with 67 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ func (gd *GameReader) GetData() data.Data {
Position: corpseUnit.Position,
},
Monsters: gd.Monsters(pu.Position, hover),
Corpses: gd.Corpses(pu.Position, hover),
PlayerUnit: pu,
Inventory: gd.Inventory(rawPlayerUnits, hover),
Objects: gd.Objects(pu.Position, hover),