Remove dead code: friendly entities are fighting entities
This commit is contained in:
parent
cea015d015
commit
657f4e5209
@ -90,11 +90,6 @@ class Player(FightingEntity):
|
||||
return True
|
||||
elif entity.is_item():
|
||||
entity.hold(self)
|
||||
elif entity.is_friendly():
|
||||
# self.map.logs.add_message(entity.talk_to(self))
|
||||
self.map.logs.add_message(self.hit(entity))
|
||||
if entity.dead:
|
||||
self.add_xp(randint(3, 7))
|
||||
return super().check_move(y, x, move_if_possible)
|
||||
|
||||
def recalculate_paths(self, max_distance: int = 8) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user