This commit is contained in:
Lukas Nöllemeyer 2024-08-18 13:58:09 +02:00
parent ed2a8181b9
commit e9ca10ba97
2 changed files with 4 additions and 1 deletions

View file

@ -70,3 +70,6 @@ Action: Final = ("Action", Callable[[Entity], None])
Gold: Final = ("Gold", int) Gold: Final = ("Gold", int)
"""Amount of gold.""" """Amount of gold."""
HP: Final = ("Health", int)
"""How alive an entity is"""

View file

@ -96,7 +96,7 @@ class MainScreen(Screen):
map: Map = g.world[None].components[Map] map: Map = g.world[None].components[Map]
# Draw walls # Draw walls and floors
doors = [ d.components[Position] for d in g.world.Q.all_of(tags=[IsDoor]) ] doors = [ d.components[Position] for d in g.world.Q.all_of(tags=[IsDoor]) ]
for i in range(console.width): for i in range(console.width):
for j in range(console.height): for j in range(console.height):