Some translations were missing concerning sunflowers, fixes #44

This commit is contained in:
Yohann D'ANELLO
2020-12-12 17:39:12 +01:00
parent 73e1fac89a
commit 288a6ac2c9
8 changed files with 98 additions and 42 deletions

View File

@ -474,9 +474,9 @@ class FriendlyEntity(FightingEntity):
dialogue_option: list
def talk_to(self, player: Any) -> str:
a = randint(0, len(self.dialogue_option) - 1)
return "The " + self.translated_name \
+ " said : " + self.dialogue_option[a]
return _("{entity} said: {message}").format(
entity=self.translated_name.capitalize(),
message=choice(self.dialogue_option))
def keys(self) -> list:
"""