Linting
This commit is contained in:
@ -5,13 +5,13 @@ from .items import Item
|
||||
from random import choice
|
||||
|
||||
|
||||
class Merchant(FriendlyEntity) :
|
||||
class Merchant(FriendlyEntity):
|
||||
"""
|
||||
The class for merchants in the dungeon
|
||||
"""
|
||||
inventory = list
|
||||
hazel = int
|
||||
|
||||
|
||||
def keys(self) -> list:
|
||||
"""
|
||||
Returns a friendly entitie's specific attributes
|
||||
@ -26,21 +26,21 @@ class Merchant(FriendlyEntity) :
|
||||
for i in range(5):
|
||||
self.inventory.append(choice(Item.get_all_items())())
|
||||
|
||||
def talk_to(self, player : Player) -> str:
|
||||
def talk_to(self, player: Player) -> str:
|
||||
"""
|
||||
This function is used to open the merchant's inventory in a menu,
|
||||
and allow the player to buy/sell objects
|
||||
"""
|
||||
# TODO
|
||||
return _("I don't sell any squirrel")
|
||||
|
||||
class Sunflower(FriendlyEntity) :
|
||||
|
||||
|
||||
class Sunflower(FriendlyEntity):
|
||||
"""
|
||||
A friendly sunflower
|
||||
"""
|
||||
dialogue_option = [_("Flower power!!"), _("The sun is warm today")]
|
||||
|
||||
|
||||
def __init__(self, maxhealth: int = 15,
|
||||
*args, **kwargs) -> None:
|
||||
super().__init__(name="sunflower",
|
||||
maxhealth=maxhealth, *args, **kwargs)
|
||||
super().__init__(name="sunflower", maxhealth=maxhealth, *args, **kwargs)
|
||||
|
Reference in New Issue
Block a user