Friendly entities are now a subclass of fighting entities, and can die. The T key is now used to talk to friendly entities
This commit is contained in:
@ -10,6 +10,12 @@ class Merchant(FriendlyEntity) :
|
||||
name = "Merchant"
|
||||
inventory = list
|
||||
hazel = int
|
||||
|
||||
def keys(self) -> list :
|
||||
"""
|
||||
Returns a friendly entitie's specific attributes
|
||||
"""
|
||||
return ["maxhealth", "health", "inventory", "hazel"]
|
||||
|
||||
def __init__(self, inventory : list, hazel : int = 75):
|
||||
super().__init__()
|
||||
@ -22,8 +28,7 @@ class Merchant(FriendlyEntity) :
|
||||
and allow the player to buy/sell objects
|
||||
"""
|
||||
# TODO
|
||||
|
||||
|
||||
|
||||
class Sunflower(FriendlyEntity) :
|
||||
"""
|
||||
A friendly sunflower
|
||||
|
Reference in New Issue
Block a user