2022-01-10 13:21:17 -05:00
|
|
|
from components.ai import HostileEnemy
|
2022-01-13 14:56:38 -05:00
|
|
|
from components import consumable
|
2022-01-10 13:21:17 -05:00
|
|
|
from components.fighter import Fighter
|
2022-01-12 16:24:09 -05:00
|
|
|
from components.inventory import Inventory
|
2022-01-12 16:12:07 -05:00
|
|
|
from entity import Actor, Item
|
2022-01-07 15:52:53 -05:00
|
|
|
|
2022-01-10 13:21:17 -05:00
|
|
|
player = Actor(
|
2022-01-07 15:52:53 -05:00
|
|
|
char="@",
|
|
|
|
color=(255, 255, 255),
|
|
|
|
name="PLayer",
|
2022-01-10 13:21:17 -05:00
|
|
|
ai_cls=HostileEnemy,
|
|
|
|
fighter=Fighter(hp=30, defense=2, power=5),
|
2022-01-12 16:24:09 -05:00
|
|
|
inventory=Inventory(capacity=26),
|
2022-01-07 15:52:53 -05:00
|
|
|
)
|
|
|
|
|
2022-01-10 13:21:17 -05:00
|
|
|
orc = Actor(
|
2022-01-07 15:52:53 -05:00
|
|
|
char="o",
|
|
|
|
color=(63, 127, 63),
|
|
|
|
name="Orc",
|
2022-01-10 13:21:17 -05:00
|
|
|
ai_cls=HostileEnemy,
|
|
|
|
fighter=Fighter(hp=10, defense=0, power=3),
|
2022-01-13 14:56:38 -05:00
|
|
|
inventory=Inventory(capacity=0),
|
2022-01-07 15:52:53 -05:00
|
|
|
)
|
2022-01-10 13:21:17 -05:00
|
|
|
troll = Actor(
|
2022-01-07 15:52:53 -05:00
|
|
|
char="T",
|
|
|
|
color=(0, 127, 0),
|
|
|
|
name="Troll",
|
2022-01-10 13:21:17 -05:00
|
|
|
ai_cls=HostileEnemy,
|
2022-01-12 16:24:09 -05:00
|
|
|
fighter=Fighter(hp=16, defense=1, power=4),
|
2022-01-13 14:56:38 -05:00
|
|
|
inventory=Inventory(capacity=0),
|
2022-01-07 15:52:53 -05:00
|
|
|
)
|
2022-01-12 16:12:07 -05:00
|
|
|
|
|
|
|
health_potion = Item(
|
|
|
|
char="!",
|
|
|
|
color=(127, 0, 255),
|
|
|
|
name="Health Potion",
|
2022-01-13 14:56:38 -05:00
|
|
|
consumable=consumable.HealingConsumable(amount=4),
|
|
|
|
)
|
|
|
|
|
|
|
|
lightning_scroll = Item(
|
|
|
|
char="~",
|
|
|
|
color=(255, 255, 0),
|
|
|
|
name="Lightning Scroll",
|
|
|
|
consumable=consumable.LightningDamageConsumable(damage=20, maximum_range=5),
|
2022-01-12 16:12:07 -05:00
|
|
|
)
|