door can now only be opened once

This commit is contained in:
Lukas Nöllemeyer 2024-08-17 15:27:05 +02:00
parent 294672e51f
commit c75f6ccec1

View file

@ -84,5 +84,6 @@ def new_world() -> Registry:
def unlock_door(door: Entity):
door.components[Graphic] = Graphic(ord("_"))
door.components.pop(Action)
door.tags.clear()
add_wall(g.world, door.components[Position], remove=True)