Exemple #1
0
    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']
Exemple #2
0
    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']
Exemple #3
0
 def __init__(self):
     data = open_data('Potion/potions.json')['healing']['normal']
     super().__init__(data)
Exemple #4
0
 def __init__(self, shield):
     data = open_data('Apparel/apparel.json')['shield'][shield]
     super().__init__(data)
Exemple #5
0
 def __init__(self, armor):
     data = open_data('Apparel/apparel.json')['armor'][armor]
     super().__init__(data)
Exemple #6
0
 def __init__(self, weapon):
     data = open_data('Weapon/weapons.json')['axe'][weapon]
     super().__init__(data)