Monsters can hit the player. No respect for unarmed people...
This commit is contained in:
parent
f9f02b6621
commit
279d9d9f58
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user