squirrel-battle/squirrelbattle/entities/friendly.py

21 lines
484 B
Python

from ..interfaces import FriendlyEntity, Map
class Merchant(FriendlyEntity) :
"""
The class for merchants in the dungeon
"""
inventory = list
def __init__(self, inventory : list):
super().__init__()
self.inventory = inventory
def talk_to(self, player : Player) -> None:
"""
This function is used to open the merchant's inventory in a menu,
and allow the player to buy/sell objects
"""
#TODO