door can now only be opened once
This commit is contained in:
parent
294672e51f
commit
c75f6ccec1
1 changed files with 1 additions and 0 deletions
|
|
@ -84,5 +84,6 @@ def new_world() -> Registry:
|
||||||
|
|
||||||
def unlock_door(door: Entity):
|
def unlock_door(door: Entity):
|
||||||
door.components[Graphic] = Graphic(ord("_"))
|
door.components[Graphic] = Graphic(ord("_"))
|
||||||
|
door.components.pop(Action)
|
||||||
door.tags.clear()
|
door.tags.clear()
|
||||||
add_wall(g.world, door.components[Position], remove=True)
|
add_wall(g.world, door.components[Position], remove=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue