Added a Gamemode for selling interfaces, as well as the base of the player/merchant interaction, related to issue #18
This commit is contained in:
@@ -11,7 +11,7 @@ class Merchant(FriendlyEntity) :
|
||||
inventory = list
|
||||
hazel = int
|
||||
|
||||
def keys(self) -> list :
|
||||
def keys(self) -> list:
|
||||
"""
|
||||
Returns a friendly entitie's specific attributes
|
||||
"""
|
||||
@@ -22,7 +22,7 @@ class Merchant(FriendlyEntity) :
|
||||
self.inventory = inventory
|
||||
self.hazel = hazel
|
||||
|
||||
def talk_to(self, player : Player) -> None:
|
||||
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
|
||||
|
Reference in New Issue
Block a user