Display message if we are dead
This commit is contained in:
@ -50,6 +50,9 @@ class Player(FightingEntity):
|
||||
the player fights this entity.
|
||||
It rewards some XP if it is dead.
|
||||
"""
|
||||
# Don't move if we are dead
|
||||
if self.dead:
|
||||
return False
|
||||
for entity in self.map.entities:
|
||||
if entity.y == y and entity.x == x and \
|
||||
isinstance(entity, FightingEntity):
|
||||
|
Reference in New Issue
Block a user