Add a message in the logs when a body-snap potion is used

This commit is contained in:
Yohann D'ANELLO
2020-12-05 14:47:54 +01:00
parent f39113fd0b
commit 7ad2cad77c
3 changed files with 22 additions and 7 deletions

View File

@ -168,4 +168,9 @@ class BodySnatchPotion(Item):
self.held_by.map.currenty, self.held_by.map.currentx = self.held_by.y,\
self.held_by.x
self.held_by.map.logs.add_message(
_("{player} exchanged its body with {entity}.").format(
player=self.held_by.translated_name.capitalize(),
entity=entity.translated_name))
self.held_by.inventory.remove(self)