From 657f4e5209cda59073eaabcb865c577127a727a3 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 9 Dec 2020 15:10:28 +0100 Subject: [PATCH] Remove dead code: friendly entities are fighting entities --- squirrelbattle/entities/player.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/squirrelbattle/entities/player.py b/squirrelbattle/entities/player.py index 48a5b7f..ce27c37 100644 --- a/squirrelbattle/entities/player.py +++ b/squirrelbattle/entities/player.py @@ -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: