Fix french translations

This commit is contained in:
Yohann D'ANELLO
2021-01-08 12:06:28 +01:00
parent e56bdc16c2
commit 571e9db3e8
6 changed files with 205 additions and 96 deletions

View File

@ -86,7 +86,7 @@ class Item(Entity):
"""
Returns the list of all item classes.
"""
return [BodySnatchPotion, Bomb, Heart, Shield, Sword,\
return [BodySnatchPotion, Bomb, Heart, Shield, Sword,
Chestplate, Helmet, RingCritical, RingXP]
def be_sold(self, buyer: InventoryHolder, seller: InventoryHolder) -> bool:
@ -118,7 +118,7 @@ class Heart(Item):
@property
def description(self) -> str:
return "HP+5"
return f"HP+{self.healing}"
def hold(self, entity: InventoryHolder) -> None:
"""
@ -304,6 +304,7 @@ class Shield(Armor):
super().__init__(name=name, constitution=constitution, price=price,
*args, **kwargs)
class Helmet(Armor):
"""
Class of helmet items, they can be equipped on the head.
@ -319,6 +320,7 @@ class Helmet(Armor):
self.held_by.remove_from_inventory(self)
self.held_by.equipped_helmet = self
class Chestplate(Armor):
"""
Class of chestplate items, they can be equipped on the body.
@ -334,6 +336,7 @@ class Chestplate(Armor):
self.held_by.remove_from_inventory(self)
self.held_by.equipped_armor = self
class BodySnatchPotion(Item):
"""
The body-snatch potion allows to exchange all characteristics with a random