Work in progress on printing a store menu. Its buggy though

This commit is contained in:
eichhornchen
2020-12-07 20:54:53 +01:00
parent d39427f978
commit 8540a8f354
7 changed files with 68 additions and 34 deletions

View File

@ -59,6 +59,9 @@ class Item(Entity):
d = super().save_state()
d["held"] = self.held
return d
def get_all_items() -> list:
return [BodySnatchPotion, Bomb, Heart, Weapon, Sword]
class Heart(Item):
@ -166,9 +169,9 @@ class Sword(Weapon) :
"""
A basic weapon
"""
def __init__(self, name: int, *args, **kwargs):
super().__init__(*args, **kwargs)
self.name = "sword"
def __init__(self, name: str = "sword", *args, **kwargs):
super().__init__(name = name, *args, **kwargs)
self.name = name
class BodySnatchPotion(Item):