Merge branch 'game-logs' into 'master'
Game logs, see #12 See merge request ynerant/squirrel-battle!18
This commit is contained in:
@ -72,7 +72,7 @@ class Player(FightingEntity):
|
||||
for entity in self.map.entities:
|
||||
if entity.y == y and entity.x == x:
|
||||
if entity.is_fighting_entity():
|
||||
self.hit(entity)
|
||||
self.map.logs.add_message(self.hit(entity))
|
||||
if entity.dead:
|
||||
self.add_xp(randint(3, 7))
|
||||
return True
|
||||
|
Reference in New Issue
Block a user