Repairing part of the tests.

This commit is contained in:
eichhornchen 2021-01-05 19:50:25 +01:00
parent 424044a5e4
commit 601062237d
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class TestEntities(unittest.TestCase):
"""
self.map = Map.load(ResourceManager.get_asset_path("example_map.txt"))
self.player = Player()
self.player.constitution = 0
self.map.add_entity(self.player)
self.player.move(self.map.start_y, self.map.start_x)
@ -54,6 +55,7 @@ class TestEntities(unittest.TestCase):
self.assertTrue(entity.dead)
entity = Rabbit()
entity.critical = 0
self.map.add_entity(entity)
entity.move(15, 44)
# Move randomly