|
| 1 | + |
| 2 | + |
1 | 3 | from components.ai import HostileEnemy, SpawnerEnemy, ZoneSpawnerEnemy, InvisblePouncerEnemy |
2 | 4 | from components import consumable, equippable |
3 | 5 | from components.fighter import Fighter |
|
8 | 10 | from input_handlers import ShopkeepMenuEventHandler |
9 | 11 | from status_effect import Poisoned, Bleeding, Spored |
10 | 12 | from components.zone import HydrogenSulfideGas, NitrousOxideGas, SporeAir |
| 13 | +from npc_handler import ShopKeeperHandler |
11 | 14 |
|
12 | 15 | ALL_ENTITIES = [] |
13 | 16 |
|
|
95 | 98 | value=10, |
96 | 99 | ) |
97 | 100 | ALL_ENTITIES.append(healing_gel) |
98 | | -XL_healing_gel = Item( |
| 101 | +xl_healing_gel = Item( |
99 | 102 | char="!", |
100 | 103 | color=(0, 255, 0), |
101 | 104 | name="XL Healing Gel", |
102 | 105 | consumable=consumable.HealingConsumable(amount=18), |
103 | 106 | inspect_message="A Extra Large healing Gel. Don't choke while gobbling it up!", |
104 | 107 | value=25, |
105 | 108 | ) |
106 | | -ALL_ENTITIES.append(XL_healing_gel) |
| 109 | +ALL_ENTITIES.append(xl_healing_gel) |
107 | 110 | taser = Item( |
108 | 111 | char="~", |
109 | 112 | color=(255, 255, 0), |
|
145 | 148 | acid_kinfe = Item( |
146 | 149 | char="/", color=(102, 255, 255), name="Acid kinfe", equippable=equippable.AcidKinfe(), |
147 | 150 | inspect_message="It's kinfe that's acidic. Be careful when holding it!", |
148 | | - value=50, |
| 151 | + value=75, |
149 | 152 | ) |
150 | 153 | ALL_ENTITIES.append(acid_kinfe) |
151 | 154 | sharp_kinfe = Item(char="/", color=(102, 255, 255), name="Sharp kinfe", equippable=equippable.SharpKinfe(), |
|
159 | 162 | name="Professional acid kinfe", |
160 | 163 | equippable=equippable.ProfessionalAcidKinfe(), |
161 | 164 | inspect_message="It's a acid kinfe that's been professionally made, for all kinds of industries. Very useful!", |
162 | | - value=100, |
| 165 | + value=150, |
163 | 166 | ) |
164 | 167 | ALL_ENTITIES.append(professional_acid_kinfe) |
165 | 168 | scrap_chest_plate = Item( |
|
198 | 201 | name="Steelpike chest plate", |
199 | 202 | equippable=equippable.SteelPikeChestPlate(), |
200 | 203 | inspect_message="Steel chest plate + spikes = this. Quite a good one if i say so myself!", |
201 | | - value=120, |
| 204 | + value=140, |
202 | 205 | ) |
203 | 206 | ALL_ENTITIES.append(steelpike_chest_plate) |
204 | 207 | acid_metal_chest_plate = Item( |
|
207 | 210 | name="Acid metal chest plate", |
208 | 211 | equippable=equippable.AcidMetalChestPlate(), |
209 | 212 | inspect_message="It's a chest plate made of acid metal. I don't know the chemistry of this material, but it's corrosive on touch, like a lot of acid.", |
210 | | - value=145, |
| 213 | + value=185, |
211 | 214 | ) |
212 | 215 | ALL_ENTITIES.append(acid_metal_chest_plate) |
213 | 216 | shopkeep_npc = NPC( |
214 | 217 | char="@", |
215 | 218 | color=(102, 255, 102), |
216 | 219 | name="Shop Keeper", |
217 | | - interact_input_handler_cls=ShopkeepMenuEventHandler, |
| 220 | + npc_handler_cls=ShopKeeperHandler, |
| 221 | + input_handler_cls=ShopkeepMenuEventHandler, |
218 | 222 | inspect_message="It's a shop keeper. He's a friendly humanoid robot. He's selling some items. At least some freind in this world.", |
219 | 223 | ) |
220 | 224 | ALL_ENTITIES.append(shopkeep_npc) |
|
226 | 230 | duration=10, |
227 | 231 | is_permanent=False, |
228 | 232 | zone_component=HydrogenSulfideGas, |
| 233 | + moves_around=True |
229 | 234 | ) |
230 | 235 | ALL_ENTITIES.append(hydrogen_sulfide_gas) |
231 | 236 | poison_gas_granade = Item( |
|
245 | 250 | duration=10, |
246 | 251 | is_permanent=False, |
247 | 252 | zone_component=NitrousOxideGas, |
| 253 | + moves_around=True |
248 | 254 | ) |
249 | 255 | ALL_ENTITIES.append(nitrous_oxide_gas) |
250 | 256 | stun_gas_granade = Item( |
|
272 | 278 | char="▒", |
273 | 279 | color=(255, 153, 0), |
274 | 280 | name="Spore filled air", |
275 | | - inspect_message="It's a cloud full of spores. They look sticky.", |
| 281 | + inspect_message="It's a cloud full of spores. They look sticky, and they will probably crawl under your skin for a while... Yikes...", |
276 | 282 | duration=10, |
277 | 283 | is_permanent=False, |
278 | 284 | zone_component=SporeAir, |
| 285 | + moves_around=True |
279 | 286 | ) |
280 | 287 | ALL_ENTITIES.append(spore_filled_air) |
281 | 288 | bloom_shroom = Actor( |
|
287 | 294 | inventory=Inventory(capacity=0), |
288 | 295 | level=Level(xp_given=200), |
289 | 296 | equipment=Equipment(), |
290 | | - inspect_message="It's a large mushroom, like the little baby ones. It's releasing spores from it's cap. Is that a bad thing?", |
| 297 | + inspect_message="It's a large mushroom, like the little baby ones. It's releasing spores like it's a breeding season! Is that a bad thing?", |
291 | 298 | ) |
292 | 299 | bloom_shroom.ai.setup(spore_filled_air, 3) |
293 | 300 | ALL_ENTITIES.append(bloom_shroom) |
|
0 commit comments