)
troll = Actor(
    char="T",
    color=(0, 127, 0),
    name="Troll",
    ai_cls=HostileEnemy,
    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="~",
示例#2
0
)

troll = Actor(
    char="T",
    color=(0,127,0),
    name="Troll",
    ai_cls=HostileEnemy,
    fighter=Fighter(hp=16, defense=1, power=4),
    inventory=Inventory(capacity=0),
)

health_potion = Item(
    char="!",
    color=(127, 0, 255),
    name="Health Potion",
    consumable=consumable.HealingConsumable(amount=(lambda: (random.randint(1, 4)+2))),
)

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),
)
    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=120, radius=3),
)
health_potion = Item(
    char="!",
    color=(127, 0, 255),
    name="Health Potion",
    consumable=consumable.HealingConsumable(amount=100),
)
lightning_scroll = Item(
    char="~",
    color=(255, 255, 0),
    name="Lightning Scroll",
    consumable=consumable.LightningDamageConsumable(damage=200, maximum_range=5),
)

dagger = Item(
    char="/", color=(0, 191, 255), name="Dagger", equippable=equippable.Dagger()
)

sword = Item(char="/", color=(0, 191, 255), name="Sword", equippable=equippable.Sword())

leather_armor = Item(
示例#4
0
    name="Fireball Scroll",
    consumable=consumable.FireballDamageConsumable(damage=12, radius=3),
)

tornado_kitty = Item(
    char="&",
    color=(0, 106, 128),
    name="Tornado Kitty",
    consumable=consumable.TornadoKittyDamageConsumable(damage=11, radius=3),
)

large_health_potion = Item(
    char="!",
    color=(102, 204, 255),
    name="Large Health Potion",
    consumable=consumable.HealingConsumable(amount=15),
)

medium_health_potion = Item(
    char="!",
    color=(230, 251, 255),
    name="Medium Health Potion",
    consumable=consumable.HealingConsumable(amount=10),
)

small_health_potion = Item(
    char="!",
    color=(127, 0, 255),
    name="Small Health Potion",
    consumable=consumable.HealingConsumable(amount=6),
)
示例#5
0
    ai_cls=HostileEnemy,
    equipment=Equipment(),
    fighter=Fighter(hp=18,
                    base_defense=2,
                    base_power=random.randint(5, 8),
                    max_hunger=1000,
                    hunger=1000),
    inventory=Inventory(capacity=0),
    level=Level(xp_given=125),
)

bandage = Item(
    char="#",
    color=(127, 0, 255),
    name="Bandage",
    consumable=consumable.HealingConsumable(amount=10),
)

burguer = Item(
    char="B",
    color=(255, 125, 0),
    name="Burguer",
    consumable=consumable.FoodConsumable(amount=10),
)

nugget = Item(char="N",
              color=(255, 125, 0),
              name="Chicken Nugget",
              consumable=consumable.FoodConsumable(amount=5))

noodles = Item(char="~",
示例#6
0
troll = Actor(char="T",
              color=(0, 127, 0),
              name="Troll",
              ai_cls=HostileEnemy,
              equipment=Equipment(),
              fighter=Fighter(hp=16),
              inventory=Inventory(capacity=0),
              level=Level(xp_given=100),
              strength=15)

health_potion = Item(
    char="!",
    color=(127, 0, 255),
    name="Potion of Healing",
    consumable=consumable.HealingConsumable(die=4, number_of_dice=2, bonus=2),
)
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),
)
lightning_scroll = Item(
    char="~",