Remove dead code: friendly entities are fighting entities

This commit is contained in:
Yohann D'ANELLO 2020-12-09 15:10:28 +01:00
parent cea015d015
commit 657f4e5209

View File

@ -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: