Skip to content

Commit a99acaf

Browse files
committed
added fireball scroll to available items generated
1 parent a17b2e1 commit a99acaf

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

entity_factories.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@
5151
name="Confusion Scroll",
5252
consumable=consumable.ConfusionConsumable(number_of_turns=10)
5353
)
54+
55+
fireball_scroll = Item(
56+
char='~',
57+
color=(255, 0, 0),
58+
name="Fireball Scroll",
59+
consumable=consumable.FireballDamageConsumable(damage=12, radius=3),
60+
)

procgen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def place_entities(
6969

7070
if item_chance < 0.7:
7171
entity_factories.health_potion.spawn(dungeon, x, y)
72+
elif item_chance < 0.8:
73+
entity_factories.fireball_scroll.spawn(dungeon, x, y)
7274
elif item_chance < 0.9:
7375
entity_factories.confusion_scroll.spawn(dungeon, x, y)
7476
else:

0 commit comments

Comments
 (0)