feat: implement encounter reset mechanics for rooms and doors

This commit is contained in:
Niklas Haiden
2026-05-08 19:32:07 +02:00
parent d6bdf22a10
commit 4faad9dd4b
3 changed files with 24 additions and 1 deletions
+8
View File
@@ -180,6 +180,14 @@ class MonsterManager:
for monster in self.monsters:
monster.wake_up()
def reset_encounter(self) -> None:
"""Stop the room attack and put all active monsters back into normal state."""
self.active_target_tile = None
self.active_door = None
for monster in self.monsters:
monster.sleep()
def update(
self,
dt: float,