Fixed grammar, unified the docstring's format and added documentation to some classes that did not have any. Closes #32.
This commit is contained in:
@ -7,7 +7,7 @@ from random import choice
|
||||
|
||||
class Merchant(InventoryHolder, FriendlyEntity):
|
||||
"""
|
||||
The class for merchants in the dungeon
|
||||
The class of merchants in the dungeon.
|
||||
"""
|
||||
def keys(self) -> list:
|
||||
"""
|
||||
@ -28,13 +28,13 @@ class Merchant(InventoryHolder, FriendlyEntity):
|
||||
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
|
||||
and allows the player to buy/sell objects.
|
||||
"""
|
||||
return _("I don't sell any squirrel")
|
||||
|
||||
def change_hazel_balance(self, hz: int) -> None:
|
||||
"""
|
||||
Change the number of hazel the merchant has by hz.
|
||||
Changes the number of hazel the merchant has by hz.
|
||||
"""
|
||||
self.hazel += hz
|
||||
|
||||
@ -49,4 +49,7 @@ class Sunflower(FriendlyEntity):
|
||||
|
||||
@property
|
||||
def dialogue_option(self) -> list:
|
||||
"""
|
||||
Lists all that a sunflower can say to the player.
|
||||
"""
|
||||
return [_("Flower power!!"), _("The sun is warm today")]
|
||||
|
Reference in New Issue
Block a user