from monster import Monster from armor import Armor from weapon import Weapon ''' a = 10 b = " askjd hak" c = "7" d = 5.5 e = True f = False g = None print(a) c = "asdsajkdh" d = d * a d = d * a h = [ 1, "asdsa", True, None, [1,{"key": 45},3] ] print(h[4][1]["key"]) h.append(10) print(h) print(h[2]) h[0] = 5 # askdjaksdhsakjdsakjdh j = { "key1": 1, "key2": "asdsa", "key3": True, "key4": None, "key5": [1,2,3] } print(j["key1"]) j["key1"] = 5 j["key6"] = "new key" print(d)''' monster_name = "Troll" weapon1 = Weapon("Sword") k = Monster(monster_name, 20, 3, 2, weapon1, Armor("Shield", 1)) print(k.name) print(k.weapon.name) print(k.weapon.bonus) k.weapon.name = "New Sword" print(k.weapon.name) k.weapon.randomize_bonus(10) print(k.weapon.bonus) k.name = "New Troll"