Skip to content

Commit

Permalink
Make only the player trigger item on the ground messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julioevm committed May 20, 2024
1 parent 50be271 commit 602bbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def perform(self) -> None:
self.entity.move(self.dx, self.dy)

item = self.engine.game_map.get_item_at_location(dest_x, dest_y)
if item is not None:
if self.entity is self.engine.player and item is not None:
self.engine.message_log.add_message(f"There is a {item.name} here.")


Expand Down

0 comments on commit 602bbc5

Please sign in to comment.