def __init__(self, data=''): if not data: data = open_data('Apparel/apparel.json')['cloth'] self.name = data['name'] self.stat = data['stat'] self.drop = data['drop']
def __init__(self, data=''): if not data: data = open_data('Weapon/weapons.json')['fist'] self.name = data['name'] self.atk = data['atk'] self.hit = data['hit'] self.crit = data['crit'] self.drop = data['drop']
def __init__(self): data = open_data('Potion/potions.json')['healing']['normal'] super().__init__(data)
def __init__(self, shield): data = open_data('Apparel/apparel.json')['shield'][shield] super().__init__(data)
def __init__(self, armor): data = open_data('Apparel/apparel.json')['armor'][armor] super().__init__(data)
def __init__(self, weapon): data = open_data('Weapon/weapons.json')['axe'][weapon] super().__init__(data)