Monsters can hit the player. No respect for unarmed people...

This commit is contained in:
Yohann D'ANELLO 2020-11-10 23:00:09 +01:00
parent f9f02b6621
commit 279d9d9f58
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class Monster(FightingEntity):
self.move_right()
else:
self.move_left()
if self.distance_squared(target) <= 1:
self.hit(target)
else:
for _ in range(100):
if choice([self.move_up, self.move_down,