def test_LightningDamageConsumable__is_Component(): c = consumable.LightningDamageConsumable(damage=10, maximum_range=5) assert isinstance(c, Component)
equipment=Equipment(), fighter=Fighter(hp=16, base_defense=1, base_power=4), inventory=Inventory(capacity=0), level=Level(xp_given=100), ) health_potion = Item( char="!", color=(127, 0, 255), name="Health Potion", consumable=consumable.HealingConsumable(amount=4), ) lightning_scroll = Item( char="~", color=(255, 255, 0), name="Lightning Scroll", consumable=consumable.LightningDamageConsumable(damage=20, maximum_range=5), ) confusion_scroll = Item( char="~", color=(207, 63, 255), name="Confusion Scroll", consumable=consumable.ConfusionConsumable(number_of_turns=10), ) fireball_scroll = Item( char="~", color=(255, 0, 0), name="Fireball Scroll", consumable=consumable.FireballDamageConsumable(damage=12, radius=3), ) dagger = Item( char="/",
def test_LightningDamageConsumable_init(): c = consumable.LightningDamageConsumable(damage=10, maximum_range=5) assert c.parent is None assert c.damage == 10 assert c.maximum_range == 5