Simon Volpert zdoomrl / master zetashop / Decorate.zetashop
master

Tree @master (Download .tar.gz)

Decorate.zetashop @masterraw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
// ZDoomRL - Gameplay Modifications for DoomRL Arsenal
// Author: Simon Volpert <simon@simonvolpert.com>
// Project page: https://simonvolpert.com/zdoomrl/
// This program is free software, released under the MIT license. See the LICENSE file for more information

// Shop token and timer
ACTOR PowerZSPocketShopTimeout : Powerup {
	Powerup.Duration -1
}

ACTOR ZSPocketShopToken : CustomInventory {
	+Inventory.UnDroppable
	+Inventory.UnTossable
	+Inventory.IgnoreSkill
	Inventory.MaxAmount 1
	States {
		Spawn:
			TNT1 A 1
			Stop
		Use:
			TNT1 A 0 A_JumpIfInventory("PowerZSPocketShopTimeout", 1, "OpenShop")
			TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SellItem") == FALSE, "SetTimer")
			Fail
		SetTimer:
			TNT1 A 0 A_GiveInventory("PowerZSPocketShopTimeout", 1)
			Fail
		OpenShop:
			TNT1 A 0 A_TakeInventory("RLWeaponDrop", 1)
			TNT1 A 0 A_TakeInventory("RLScavengerDrop", 1)
			TNT1 A 0 A_GiveInventory("RLDeselectionFunction", 1)
			TNT1 A 0 A_TakeInventory("ZSSpecialBackpackUse", 1)
			TNT1 A 0 ACS_NamedExecuteAlways("OpenShop")
			Fail
	}
}

// Arbitrarily high-capacity meta-token
ACTOR ZSCounter : RLPermanentInventory {
	Inventory.MaxAmount 1000000000
}

// Life insurance
ACTOR ZSLifeInsuranceToken : RLPermanentInventory {}
ACTOR ZSLifeInsurancePremium : ZSCounter {}

// Cash
ACTOR ZSCreditChip : ZSCounter {}

// Bounties
ACTOR ZSKillBountyToken : ZSCounter {}
ACTOR ZSItemBountyToken : ZSCounter {}
ACTOR ZSSecretBountyToken : ZSCounter {}
ACTOR ZSSuckToken : RLPermanentInventory {}

// Special backpack manipulation token
ACTOR ZSSpecialBackpackUse : RLPermanentInventory {}

// Nuclear Barrel Early Warning System notification delay
ACTOR ZSNukeWarningDelay : RLPermanentInventory {}

// Shop inventory
// Consumables
ACTOR ZSExperimentalPhaseDeviceKnownToken : RLPermanentInventory {}
ACTOR ZSRandomSkullSpawnerKnownToken : RLPermanentInventory {}
// Modpacks
ACTOR ZSBulkModKnownToken : RLPermanentInventory {}
ACTOR ZSTechnicalModKnownToken : RLPermanentInventory {}
ACTOR ZSAgilityModKnownToken : RLPermanentInventory {}
ACTOR ZSPowerModKnownToken : RLPermanentInventory {}
ACTOR ZSSniperModKnownToken : RLPermanentInventory {}
ACTOR ZSFirestormModKnownToken : RLPermanentInventory {}
ACTOR ZSNanoModKnownToken : RLPermanentInventory {}
ACTOR ZSOnyxModKnownToken : RLPermanentInventory {}
ACTOR ZSArmorModKnownToken : RLPermanentInventory {}
ACTOR ZSArtiModKnownToken : RLPermanentInventory {}
ACTOR ZSDemonArtifactKnownToken : RLPermanentInventory {}
// Basic weapons
ACTOR ZSBFG9000KnownToken : RLPermanentInventory {}
// Basic armors
ACTOR ZSGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModRedArmorKnownToken : RLPermanentInventory {}
// Assembled basic armors
ACTOR ZSNanofiberGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanofiberBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanofiberRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBallisticGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBallisticBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBallisticRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanofiberSkinGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanofiberSkinBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanofiberSkinRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSAblativeGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSAblativeBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSAblativeRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPowerGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPowerBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPowerRedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCybernanoGreenArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCybernanoBlueArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCybernanoRedArmorKnownToken : RLPermanentInventory {}
// Basic boots
ACTOR ZSSteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSProtectiveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSPlasteelBootsKnownToken : RLPermanentInventory {}
// Assembled basic boots
ACTOR ZSEnviromentalSteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSEnviromentalProtectiveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSEnviromentalPlasteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofSteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofProtectiveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSFireproofPlasteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSGrapplingSteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSGrapplingProtectiveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSGrapplingPlasteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSAntigravSteelBootsKnownToken : RLPermanentInventory {}
ACTOR ZSAntigravProtectiveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSAntigravPlasteelBootsKnownToken : RLPermanentInventory {}
// Armor and boot assemblies
ACTOR ZSCerberusArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCerberusBootsKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalArmorKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalBootsKnownToken : RLPermanentInventory {}
ACTOR ZSFireShieldArmorKnownToken : RLPermanentInventory {}
ACTOR ZSTowerShieldArmorKnownToken : RLPermanentInventory {}
// Basic weapon assemblies
ACTOR ZSSilencedPistolKnownToken : RLPermanentInventory {}
ACTOR ZSStealthRifleKnownToken : RLPermanentInventory {}
ACTOR ZSShredderPistolKnownToken : RLPermanentInventory {}
ACTOR ZSShredderShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSSpeedloaderPistolKnownToken : RLPermanentInventory {}
ACTOR ZSElephantGunKnownToken : RLPermanentInventory {}
ACTOR ZSGatlingGunKnownToken : RLPermanentInventory {}
ACTOR ZSMicroLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSFlamethrowerKnownToken : RLPermanentInventory {}
ACTOR ZSSniperRifleKnownToken : RLPermanentInventory {}
ACTOR ZSShrapnelCannonKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPlasmaRevolverKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyCombatShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyDoubleShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavySuperShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyAssaultShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyPlasmaShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyHuntingShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPiercingChainsawKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerPistolKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerBattleRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerBFG9000KnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerTristarBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerLaserRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerNuclearPlasmaPistolKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerNuclearPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerNuclearBFG9000KnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerUziKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerMarksmanRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerVanguardRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerHuntingRevolverKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerThompsonKnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerPP7KnownToken : RLPermanentInventory {}
ACTOR ZSHighPowerRCP90KnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelCombatShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelDoubleShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelSuperShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelAssaultShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelPlasmaShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaticShrapnelHuntingShotgunKnownToken : RLPermanentInventory {}
// Exotic armors and boots
ACTOR ZSBulletProofVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModBulletProofVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBallisticVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModBallisticVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSDuelistArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModDuelistArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCyberwarriorArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModCyberwarriorArmorKnownToken : RLPermanentInventory {}
ACTOR ZSEnergyShieldedVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModEnergyShieldedVestArmorKnownToken : RLPermanentInventory {}
ACTOR ZSRepulsionWaveSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModRepulsionWaveSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSMedicalArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModMedicalArmorKnownToken : RLPermanentInventory {}
ACTOR ZSSurvivalMediArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOModSurvivalMediArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOnyxArmorKnownToken : RLPermanentInventory {}
ACTOR ZSOverchargeSystemArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBallisticShieldArmorKnownToken : RLPermanentInventory {}
ACTOR ZSEnergyShieldArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaShieldArmorKnownToken : RLPermanentInventory {}
ACTOR ZSAcidProofBootsKnownToken : RLPermanentInventory {}
ACTOR ZSShockwaveBootsKnownToken : RLPermanentInventory {}
ACTOR ZSGothicArmorKnownToken : RLPermanentInventory {}
ACTOR ZSGothicBootsKnownToken : RLPermanentInventory {}
ACTOR ZSOModGothicArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPhaseshiftArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPhaseshiftBootsKnownToken : RLPermanentInventory {}
ACTOR ZSOModPhaseshiftArmorKnownToken : RLPermanentInventory {}
// Advanced weapon assemblies
ACTOR ZSDoubleChainsawKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalRocketLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSStormPistolKnownToken : RLPermanentInventory {}
ACTOR ZSStormCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSStormMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSStormHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSStormUziKnownToken : RLPermanentInventory {}
ACTOR ZSStormBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSStormNuclearPlasmaPistolKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaPistolKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaUziKnownToken : RLPermanentInventory {}
ACTOR ZSOverchargedBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSSuperchargedNuclearPlasmaPistolKnownToken : RLPermanentInventory {}
ACTOR ZSVBFG9000KnownToken : RLPermanentInventory {}
ACTOR ZSNuclearVBFG9000KnownToken : RLPermanentInventory {}
ACTOR ZSFocusedDoubleShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSHyperBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSBulletstormChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSBulletstormRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAutoshotgunKnownToken : RLPermanentInventory {}
ACTOR ZSAutoDoubleShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSMiniMissilePistolKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaRifleMkIIKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaShotgunMkIIKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPlasmaRifleMkIIKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPlasmaShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSLaserShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSGrenadeLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleBattleRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRiflePlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleLaserRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleNuclearPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultRifleUziKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonBattleRifleKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonLaserRifleKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonNuclearPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSBurstCannonUziKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelCombatShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelDoubleShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelSuperShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelAssaultShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoShrapnelPlasmaShotgunKnownToken : RLPermanentInventory {}
// Master weapon assemblies
ACTOR ZSRipperKnownToken : RLPermanentInventory {}
ACTOR ZSBiggestFuckingGunKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearBiggestFuckingGunKnownToken : RLPermanentInventory {}
ACTOR ZSMotherInLawKnownToken : RLPermanentInventory {}
ACTOR ZSAutocannonKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaRefractorKnownToken : RLPermanentInventory {}
ACTOR ZSClusterBombLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSMegatonShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSConquerorShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSVoltgunKnownToken : RLPermanentInventory {}
ACTOR ZSSuperMachinegunKnownToken : RLPermanentInventory {}
ACTOR ZSGaussRifleKnownToken : RLPermanentInventory {}
ACTOR ZSAntiMaterielRifleKnownToken : RLPermanentInventory {}
ACTOR ZSZeusCannonKnownToken : RLPermanentInventory {}
ACTOR ZSEnergysawKnownToken : RLPermanentInventory {}
ACTOR ZSInfusionLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaCannonKnownToken : RLPermanentInventory {}
ACTOR ZSHeavyPulseBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSLaserMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSLaserPulseLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSIncinerationDeviceLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoPistolKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSNanomanufactureAmmoBattleRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoRocketLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSNanomanufactureAmmoMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoTristarBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoMissileLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoNapalmLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoLaserRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNanoManufactureAmmoUziKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoPistolKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoChaingunKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoBattleRifleKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSDemolitionAmmoUziKnownToken : RLPermanentInventory {}
// Exotic weapons
ACTOR ZSBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSCombatPistolKnownToken : RLPermanentInventory {}
ACTOR ZSMarksmanPistolKnownToken : RLPermanentInventory {}
ACTOR ZSHandCannonKnownToken : RLPermanentInventory {}
ACTOR ZSSuperShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSAssaultShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSTristarBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSMinigunKnownToken : RLPermanentInventory {}
ACTOR ZSMissileLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNapalmLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSLaserRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPlasmaPistolKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPlasmaRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearBFG9000KnownToken : RLPermanentInventory {}
ACTOR ZSCombatTranslocatorKnownToken : RLPermanentInventory {}
ACTOR ZSUziKnownToken : RLPermanentInventory {}
// Superior weapons
ACTOR ZSMarksmanRifleKnownToken : RLPermanentInventory {}
ACTOR ZSVanguardRifleKnownToken : RLPermanentInventory {}
ACTOR ZSHuntingRevolverKnownToken : RLPermanentInventory {}
ACTOR ZSThompsonKnownToken : RLPermanentInventory {}
ACTOR ZSPP7KnownToken : RLPermanentInventory {}
ACTOR ZSHuntingShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSRCP90KnownToken : RLPermanentInventory {}
// Unique weapons
ACTOR ZSJackhammerKnownToken : RLPermanentInventory {}
ACTOR ZSRailgunKnownToken : RLPermanentInventory {}
ACTOR ZSMysteriousMagnumKnownToken : RLPermanentInventory {}
ACTOR ZSBFG10KKnownToken : RLPermanentInventory {}
ACTOR ZSUnknownHeraldKnownToken : RLPermanentInventory {}
ACTOR ZSFragShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSQuadShotgunKnownToken : RLPermanentInventory {}
ACTOR ZSLightweaverKnownToken : RLPermanentInventory {}
ACTOR ZSTrigunKnownToken : RLPermanentInventory {}
ACTOR ZSGrammatonClericBerettaKnownToken : RLPermanentInventory {}
ACTOR ZSAntiFreakJackalKnownToken : RLPermanentInventory {}
ACTOR ZSHellsingARMSCasullKnownToken : RLPermanentInventory {}
ACTOR ZSTantrumCannonKnownToken : RLPermanentInventory {}
ACTOR ZSRevenantsLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSNullPointerKnownToken : RLPermanentInventory {}
ACTOR ZSParticleBeamCannonKnownToken : RLPermanentInventory {}
ACTOR ZSPlasmaRedirectionCannonKnownToken : RLPermanentInventory {}
ACTOR ZSSteelBeastKnownToken : RLPermanentInventory {}
ACTOR ZSSussGunKnownToken : RLPermanentInventory {}
ACTOR ZSMIRVLauncherKnownToken : RLPermanentInventory {}
ACTOR ZSMarathonAssaultRifleKnownToken : RLPermanentInventory {}
ACTOR ZSMarathonShotgunsKnownToken : RLPermanentInventory {}
ACTOR ZSWidowmakerSMGKnownToken : RLPermanentInventory {}
ACTOR ZSChameleonRifleKnownToken : RLPermanentInventory {}
ACTOR ZSNanomachicArmamentGeneratorKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearOnslaughtKnownToken : RLPermanentInventory {}
ACTOR ZSTriadCannonKnownToken : RLPermanentInventory {}
ACTOR ZSLuciferCannonKnownToken : RLPermanentInventory {}
ACTOR ZSDirectHitKnownToken : RLPermanentInventory {}
// Superior armors
ACTOR ZSNuclearArmorKnownToken : RLPermanentInventory {}
ACTOR ZSRechargeableEnergyShieldArmorKnownToken : RLPermanentInventory {}
// Unique armors and boots
ACTOR ZSBerserkerArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBerserkPowersuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSBlazingPhoenixDeviceSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSCyberneticArmorKnownToken : RLPermanentInventory {}
ACTOR ZSEnergyDischargeHarnessArmorKnownToken : RLPermanentInventory {}
ACTOR ZSJetpackArmorKnownToken : RLPermanentInventory {}
ACTOR ZSKateMatterstormHarnessArmorKnownToken : RLPermanentInventory {}
ACTOR ZSKyleTeslaboltArmorKnownToken : RLPermanentInventory {}
ACTOR ZSMedicalPowerArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNanoAblativeArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNecroArmorKnownToken : RLPermanentInventory {}
ACTOR ZSPrototypeAssaultShieldArmorKnownToken : RLPermanentInventory {}
ACTOR ZSRyanCordellPsychicAmplifierSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSShieldedArmorKnownToken : RLPermanentInventory {}
ACTOR ZSTerminusEst13BattlesuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSWildWeaselPeacekeeperArmorKnownToken : RLPermanentInventory {}
ACTOR ZSXaserPowerArmorKnownToken : RLPermanentInventory {}
ACTOR ZSZeroDiamondAssaultForceArmorKnownToken : RLPermanentInventory {}
ACTOR ZSEnviroBootsKnownToken : RLPermanentInventory {}
ACTOR ZSLeonidasBootsKnownToken : RLPermanentInventory {}
ACTOR ZSGeosGoldenGauntletArmorKnownToken : RLPermanentInventory {}
// Unique armor and boot sets
ACTOR ZSFrontlineEngineerSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSFrontlineEngineerBootsKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalAssemblerSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSTacticalAssemblerBootsKnownToken : RLPermanentInventory {}
ACTOR ZSLavaArmorKnownToken : RLPermanentInventory {}
ACTOR ZSLavaBootsKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPowerArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearPowerBootsKnownToken : RLPermanentInventory {}
ACTOR ZSMaleksArmorKnownToken : RLPermanentInventory {}
ACTOR ZSNyarlaptotepsBootsKnownToken : RLPermanentInventory {}
ACTOR ZSRoystensCommandArmorKnownToken : RLPermanentInventory {}
ACTOR ZSRoystensCombatBootsKnownToken : RLPermanentInventory {}
ACTOR ZSSoloOperativeSuitArmorKnownToken : RLPermanentInventory {}
ACTOR ZSSoloOperativeBootsKnownToken : RLPermanentInventory {}
ACTOR ZSTorgueBlastplateArmorKnownToken : RLPermanentInventory {}
ACTOR ZSTorgueBlastBootsKnownToken : RLPermanentInventory {}
// Demonic weapons
ACTOR ZSDeathsGazeKnownToken : RLPermanentInventory {}
ACTOR ZSHellsReignKnownToken : RLPermanentInventory {}
ACTOR ZSSoulstormRifleKnownToken : RLPermanentInventory {}
ACTOR ZSUnmakerKnownToken : RLPermanentInventory {}
// Demonic armors and boots
ACTOR ZSDemonicCarapaceArmorKnownToken : RLPermanentInventory {}
ACTOR ZSDemonicBootsKnownToken : RLPermanentInventory {}
ACTOR ZSSoulshatterArmorKnownToken : RLPermanentInventory {}
// Legendary weapons
ACTOR ZSJudgeOfTheDeadKnownToken : RLPermanentInventory {}
ACTOR ZSHurricaneCannonKnownToken : RLPermanentInventory {}
ACTOR ZSNeuralStunnerKnownToken : RLPermanentInventory {}
ACTOR ZSBaronBlasterKnownToken : RLPermanentInventory {}
ACTOR ZSRealityDistortionArrayKnownToken : RLPermanentInventory {}
ACTOR ZSBFGInfinityKnownToken : RLPermanentInventory {}
ACTOR ZSDuke2RifleKnownToken : RLPermanentInventory {}
ACTOR ZSLonghornKnownToken : RLPermanentInventory {}
//ACTOR ZSDragonslayerKnownToken : RLPermanentInventory {}
// Legendary armors and boots
ACTOR ZSAngelicArmorKnownToken : RLPermanentInventory {}
ACTOR ZSAngelicBootsKnownToken : RLPermanentInventory {}
ACTOR ZSTheBeeArmorKnownToken : RLPermanentInventory {}
ACTOR ZSReactiveShieldSystemArmorKnownToken : RLPermanentInventory {}
ACTOR ZSChronotrooperArmorKnownToken : RLPermanentInventory {}
// Special backpacks
ACTOR ZSCombatBackpackKnownToken : RLPermanentInventory {}
ACTOR ZSSpecialistBackpackKnownToken : RLPermanentInventory {}
ACTOR ZSScroungerBackpackKnownToken : RLPermanentInventory {}
ACTOR ZSDedicatedBackpackKnownToken : RLPermanentInventory {}
ACTOR ZSNuclearBackpackKnownToken : RLPermanentInventory {}
//ACTOR ZSKnownToken : RLPermanentInventory {}

// Utility: remove the nuclear set bonus when selling a weapon
// Copied from arsenal.wad wherein it appears verbatim in every nuclear weapon definition
// Yholl mush really enjoy copying and pasting things over
ACTOR ZSNuclearSetBonusRemover : CustomInventory {
	-CountItem
	+Inventory.AlwaysPickup
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	States {
		Spawn:
			TNT1 A 1
			Stop
		Pickup:
			TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistol",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRevolver",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaPistol",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLStormNuclearPlasmaPistol",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLSuperchargedNuclearPlasmaPistol",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifle",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaShotgun",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleMkII",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLAssaultRifleNuclearPlasmaRifle",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLBurstCannonNuclearPlasmaRifle",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaRifle",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearBFG9000",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearVBFG9000",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearBiggestFuckingGun",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_JumpIfInventory("RLNuclearOnslaught",1,"WeaponDropConfirmContinue")
			TNT1 A 0 A_TakeInventory("RLNuclearWeaponSetBonusWeapon", 1)
			TNT1 A 0 A_TakeInventory("RLNuclearWeaponSetBonusActive", 1)
		WeaponDropConfirmContinue:
			TNT1 A 0
			Stop
	}
}

// Utility translocator: teleports non-living objects to you
ACTOR ZSUtilityTranslocatorTargeting : RLPermanentInventory {}

ACTOR ZSUtilityTranslocator : CustomInventory {
	-CountItem
	+Inventory.UnDroppable
	+Inventory.UnTossable
	+Inventory.IgnoreSkill
	+Inventory.InvBar
	+Inventory.NeverRespawn
	+Inventory.FancyPickupSound
	Scale 0.4
	Inventory.MaxAmount 1
	Inventory.InterHubAmount 1
	Inventory.Icon "ZSUTRL"
	Tag "Utility Translocator"
	Inventory.PickupSound ""
	Inventory.PickupMessage ""
	States {
		Spawn:
			ZUTR L 10 Bright
			ZUTR L 10
			Loop
		Pickup:
			TNT1 A 0 A_Print("\ccPicked up a \cdUtility Translocator\c-\n\nTarget an inanimate object to transport it to you\nConsumes phase devices to recharge", 5, "CONFONT")
			TNT1 A 0 A_PlaySound("weapons/particlebeamcannonactivate", CHAN_AUTO)
			Stop
		Use:
			TNT1 A 0 ACS_NamedExecuteAlways("ForcePull", 0)
			Fail
		NoPickup:
			TNT1 A 0 A_JumpIfInventory("DRLA_ModsAntiLogFloodCheck", 1, "NoPickup_NoPrint")
			TNT1 A 0 A_GiveInventory("DRLA_ModsAntiLogFloodCheck")
			TNT1 A 0 A_Print("\cd= Utility Translocator =\c-", 2, "CONFONT")
		NoPickup_NoPrint:
			TNT1 A 0
			Fail
	}
}

ACTOR DroppedZSUtilityTranslocator : DroppedRLPhaseDevice {
	States {
		Spawn:
			ZUTR L -1
			Loop
		Death:
			TNT1 A 0
			TNT1 A 1 A_SpawnItem("ZSUtilityTranslocator", 0, 0, 0, 0)
			Stop
	}
}

ACTOR ZSUtilityTranslocatorDrop : CustomInventory {
	-CountItem
	+Inventory.AlwaysPickup
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	States {
		Spawn:
			TNT1 A 0
			Stop
		Pickup:
			TNT1 A 0 A_TakeInventory("ZSUtilityTranslocator", 1)
			TNT1 A 0 A_TakeInventory("ZSUtilityTranslocatorTargeting", 1)
			TNT1 A 0 A_SpawnItemEx("DroppedZSUtilityTranslocator", 0, 0, 40, frandom(6,12), 0, 0, 0, SXF_SETMASTER)
			TNT1 A 0 A_Print("Dropped the \cdUtility Translocator.")
			Stop
	}
}

// Sometimes spawn a Homing Phase Device instead of the regular one
ACTOR ZSRandomPhaseDeviceSpawner : RandomSpawner {
	DropItem "RLPhaseDevice" 255 3
	DropItem "RLHomingPhaseDevice" 255 1
}