Entities are living during two ticks, fixes #80

This commit is contained in:
Yohann D'ANELLO
2021-01-16 00:40:32 +01:00
parent 87e896bd06
commit d978d319bc
3 changed files with 10 additions and 3 deletions

View File

@ -209,7 +209,8 @@ class TestEntities(unittest.TestCase):
self.assertNotIn(explosion, self.player.inventory)
self.assertIsNone(explosion.held_by)
# The explosion disappears after one tick
# The explosion disappears after two ticks
explosion.act(self.map)
explosion.act(self.map)
self.assertNotIn(explosion, self.map.entities)