-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathlootdrop.dm
794 lines (689 loc) · 24.6 KB
/
lootdrop.dm
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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
/obj/effect/spawner/lootdrop
icon = 'icons/effects/landmarks_static.dmi'
icon_state = "random_loot"
layer = OBJ_LAYER
var/lootcount = 1 //how many items will be spawned
var/lootdoubles = TRUE //if the same item can be spawned twice
var/list/loot //a list of possible items to spawn e.g. list(/obj/item, /obj/structure, /obj/effect)
var/fan_out_items = FALSE //Whether the items should be distributed to offsets 0,1,-1,2,-2,3,-3.. This overrides pixel_x/y on the spawner itself
/obj/effect/spawner/lootdrop/Initialize(mapload)
..()
if(loot && loot.len)
var/loot_spawned = 0
while((lootcount-loot_spawned) && loot.len)
var/lootspawn = pickweight(loot)
if(!lootdoubles)
loot.Remove(lootspawn)
if(lootspawn)
var/atom/movable/spawned_loot = new lootspawn(loc)
if (!fan_out_items)
if (pixel_x != 0)
spawned_loot.pixel_x = pixel_x
if (pixel_y != 0)
spawned_loot.pixel_y = pixel_y
else
if (loot_spawned)
spawned_loot.pixel_x = spawned_loot.pixel_y = ((!(loot_spawned%2)*loot_spawned/2)*-1)+((loot_spawned%2)*(loot_spawned+1)/2*1)
loot_spawned++
return INITIALIZE_HINT_QDEL
/obj/effect/spawner/lootdrop/surgery_tool_advanced
name = "Advanced surgery tool spawner"
loot = list( // Mail loot spawner. Drop pool of advanced medical tools typically from research. Not endgame content.
/obj/item/scalpel/advanced,
/obj/item/retractor/advanced,
/obj/item/cautery/advanced,
)
/obj/effect/spawner/lootdrop/surgery_tool_alien
name = "Rare surgery tool spawner"
loot = list( // Mail loot spawner. Some sort of random and rare surgical tool. Alien tech found here.
/obj/item/scalpel/alien,
/obj/item/hemostat/alien,
/obj/item/retractor/alien,
/obj/item/circular_saw/alien,
/obj/item/surgicaldrill/alien,
/obj/item/cautery/alien,
)
/obj/effect/spawner/lootdrop/engineering_tool_advanced
name = "Advanced engineering tool spawner"
loot = list( // Mail loot spawner. Drop pool of advanced engineering tools typically from research. Not endgame content.
/obj/item/handdrill,
/obj/item/jawsoflife,
/obj/item/multitool/tricorder,
/obj/item/weldingtool/experimental,
)
/obj/effect/spawner/lootdrop/engineering_tool_alien
name = "Rare engineering tool spawner"
loot = list( // Mail loot spawner. Some sort of random and rare engineering tool. Alien tech found here.
/obj/item/wrench/abductor,
/obj/item/wirecutters/abductor,
/obj/item/screwdriver/abductor,
/obj/item/crowbar/abductor,
/obj/item/weldingtool/abductor,
/obj/item/multitool/abductor,
)
/obj/effect/spawner/lootdrop/memeorgans
name = "meme organ spawner"
lootcount = 5
loot = list(
/obj/item/organ/ears/penguin,
/obj/item/organ/ears/cat,
/obj/item/organ/eyes/moth,
/obj/item/organ/eyes/snail,
/obj/item/organ/tongue/bone,
/obj/item/organ/tongue/fly,
/obj/item/organ/tongue/snail,
/obj/item/organ/tongue/lizard,
/obj/item/organ/tongue/alien,
///obj/item/organ/tongue/ethereal,
/obj/item/organ/tongue/robot,
/obj/item/organ/tongue/zombie,
/obj/item/organ/tongue/vox,
/obj/item/organ/appendix,
/obj/item/organ/liver/fly,
/obj/item/organ/lungs/plasmaman,
/obj/item/organ/lungs/ethereal,
/obj/item/organ/lungs/vox,
/obj/item/organ/tail/cat,
/obj/item/organ/tail/lizard,
/obj/item/organ/tail/vox
)
/obj/effect/spawner/lootdrop/plushies
name = "random plushie"
lootcount = 1
loot = list(
/obj/item/toy/plush/bubbleplush,
/obj/item/toy/plush/carpplushie,
/obj/item/toy/plush/lizardplushie,
/obj/item/toy/plush/snakeplushie,
/obj/item/toy/plush/nukeplushie,
/obj/item/toy/plush/slimeplushie,
/obj/item/toy/plush/beeplushie,
/obj/item/toy/plush/mothplushie,
/obj/item/toy/plush/pkplushie,
/obj/item/toy/plush/foxplushie,
/obj/item/toy/plush/lizard/azeel,
/obj/item/toy/plush/blahaj,
/obj/item/toy/plush/cdragon,
/obj/item/toy/plush/goatplushie,
/obj/item/toy/plush/teddybear,
/obj/item/toy/plush/stuffedmonkey,
/obj/item/toy/plush/inorixplushie,
/obj/item/toy/plush/flowerbunch,
/obj/item/toy/plush/goatplushie,
/obj/item/toy/plush/realgoat,
/obj/item/toy/plush/voxplushie
)
/obj/effect/spawner/lootdrop/techshell
name = "random techshell spawner"
lootcount = 1
loot = list(
/obj/item/ammo_casing/shotgun/pulseslug,
/obj/item/ammo_casing/shotgun/dragonsbreath,
/obj/item/ammo_casing/shotgun/ion,
/obj/item/ammo_casing/shotgun/frag12,
/obj/item/ammo_casing/shotgun/laserbuckshot,
/obj/item/ammo_casing/shotgun/thundershot,
/obj/item/ammo_casing/shotgun/uraniumpenetrator,
/obj/item/ammo_casing/shotgun/cryoshot
)
/obj/effect/spawner/lootdrop/coin
name = "random coin spawner"
lootcount = 1
loot = list(
/obj/item/coin/iron,
/obj/item/coin/silver,
/obj/item/coin/gold,
/obj/item/coin/plasma,
/obj/item/coin/uranium,
/obj/item/coin/diamond,
/obj/item/coin/bananium
)
/obj/effect/spawner/lootdrop/armory_contraband
name = "armory contraband gun spawner"
lootdoubles = FALSE
loot = list(
/obj/item/gun/ballistic/automatic/pistol = 8,
/obj/item/gun/ballistic/shotgun/automatic/combat = 5,
/obj/item/gun/ballistic/revolver/mateba,
/obj/item/gun/ballistic/automatic/pistol/deagle
)
/obj/effect/spawner/lootdrop/armory_contraband/metastation
loot = list(/obj/item/gun/ballistic/automatic/pistol = 5,
/obj/item/gun/ballistic/shotgun/automatic/combat = 5,
/obj/item/gun/ballistic/revolver/mateba,
/obj/item/gun/ballistic/automatic/pistol/deagle,
/obj/item/storage/box/syndie_kit/throwing_weapons = 3)
/obj/effect/spawner/lootdrop/gambling
name = "gambling valuables spawner"
loot = list(
/obj/item/gun/ballistic/revolver/russian = 5,
/obj/item/storage/box/syndie_kit/throwing_weapons = 1,
/obj/item/toy/cards/deck/syndicate = 2
)
/obj/effect/spawner/lootdrop/seed_rare
name = "rare seed"
lootcount = 5
loot = list( // /obj/item/seeds/random is not a random seed, but an exotic seed.
/obj/item/seeds/random = 30,
/obj/item/seeds/liberty = 5,
/obj/item/seeds/replicapod = 5,
/obj/item/seeds/reishi = 5,
/obj/item/seeds/nettle/death = 1,
/obj/item/seeds/plump/walkingmushroom = 1,
/obj/item/seeds/cannabis/rainbow = 1,
/obj/item/seeds/cannabis/death = 1,
/obj/item/seeds/cannabis/white = 1,
/obj/item/seeds/cannabis/ultimate = 1,
/obj/item/seeds/kudzu = 1,
/obj/item/seeds/angel = 1,
/obj/item/seeds/glowshroom/glowcap = 1,
/obj/item/seeds/glowshroom/shadowshroom = 1,
)
/obj/effect/spawner/lootdrop/grille_or_trash
name = "maint grille or trash spawner"
loot = list(/obj/structure/grille = 5,
/obj/item/cigbutt = 1,
/obj/item/trash/cheesie = 1,
/obj/item/trash/candy = 1,
/obj/item/trash/chips = 1,
/obj/item/reagent_containers/food/snacks/deadmouse = 1,
/obj/item/trash/pistachios = 1,
/obj/item/trash/plate = 1,
/obj/item/trash/popcorn = 1,
/obj/item/trash/raisins = 1,
/obj/item/trash/sosjerky = 1,
/obj/item/reagent_containers/food/snacks/grown/poppy = 1,
/obj/item/trash/syndi_cakes = 1,
/obj/item/broken_bottle = 1)
/obj/effect/spawner/lootdrop/trashbin
name = "trash spawner"
loot = list(/obj/item/cigbutt = 1,
/obj/item/trash/cheesie = 1,
/obj/item/trash/candy = 1,
/obj/item/trash/chips = 1,
/obj/item/reagent_containers/food/snacks/deadmouse = 1,
/obj/item/trash/pistachios = 1,
/obj/item/trash/plate = 1,
/obj/item/trash/popcorn = 1,
/obj/item/trash/raisins = 1,
/obj/item/trash/sosjerky = 1,
/obj/item/reagent_containers/food/snacks/grown/poppy = 1,
/obj/item/trash/syndi_cakes = 1,
/obj/item/broken_bottle = 1)
/obj/effect/spawner/lootdrop/donkpockets
name = "donk pocket box spawner"
lootdoubles = FALSE
loot = list(
/obj/item/storage/box/donkpockets/donkpocketspicy = 1,
/obj/item/storage/box/donkpockets/donkpocketteriyaki = 1,
/obj/item/storage/box/donkpockets/donkpocketpizza = 1,
/obj/item/storage/box/donkpockets/donkpocketberry = 1,
/obj/item/storage/box/donkpockets/donkpockethonk = 1,
)
/obj/effect/spawner/lootdrop/tanks
name = "reagent tank spawner"
icon_state = "random_tanks"
lootdoubles = FALSE
loot = list(
/obj/structure/reagent_dispensers/fueltank = 5,
/obj/structure/reagent_dispensers/watertank = 5,
/obj/structure/reagent_dispensers/watertank/high = 3,
/obj/structure/reagent_dispensers/foamtank = 1,
)
/obj/effect/spawner/lootdrop/tanks/lowchance
name = "rare reagent tank spawner"
lootdoubles = FALSE
loot = list(
"" = 50,
/obj/structure/reagent_dispensers/fueltank = 5,
/obj/structure/reagent_dispensers/watertank = 5,
/obj/structure/reagent_dispensers/watertank/high = 3,
/obj/structure/reagent_dispensers/foamtank = 1,
)
/obj/effect/spawner/lootdrop/tanks/midchance
name = "common reagent tank spawner"
lootdoubles = FALSE
loot = list(
"" = 15,
/obj/structure/reagent_dispensers/fueltank = 5,
/obj/structure/reagent_dispensers/watertank = 5,
/obj/structure/reagent_dispensers/watertank/high = 3,
/obj/structure/reagent_dispensers/foamtank = 1,
)
/obj/effect/spawner/lootdrop/tanks/highchance
name = "frequent reagent tank spawner"
lootdoubles = FALSE
loot = list(
"" = 5,
/obj/structure/reagent_dispensers/fueltank = 5,
/obj/structure/reagent_dispensers/watertank = 5,
/obj/structure/reagent_dispensers/watertank/high = 3,
/obj/structure/reagent_dispensers/foamtank = 1,
)
/obj/effect/spawner/lootdrop/tanks/highquality
name = "highcap water/foam tank spawner"
lootdoubles = FALSE
loot = list(
/obj/structure/reagent_dispensers/watertank/high = 5,
/obj/structure/reagent_dispensers/foamtank = 5,
)
/obj/effect/spawner/lootdrop/tanks/fuelonly
name = "guaranteed fuel tank spawner"
lootdoubles = FALSE
loot = list(
/obj/structure/reagent_dispensers/fueltank = 5,
)
/obj/effect/spawner/lootdrop/tanks/fuelonly/lowchance
name = "rare fuel tank spawner"
lootdoubles = FALSE
loot = list(
"" = 50,
/obj/structure/reagent_dispensers/fueltank = 5,
)
/obj/effect/spawner/lootdrop/tanks/fuelonly/midchance
name = "common fuel tank spawner"
lootdoubles = FALSE
loot = list(
"" = 15,
/obj/structure/reagent_dispensers/fueltank = 5,
)
/obj/effect/spawner/lootdrop/tanks/fuelonly/highchance
name = "frequent fuel tank spawner"
lootdoubles = FALSE
loot = list(
"" = 5,
/obj/structure/reagent_dispensers/fueltank = 5,
)
/obj/effect/spawner/lootdrop/effects/
name = "generic effect spawner"
icon_state = "x4"
lootdoubles = FALSE
loot = list(
"" = 100,
)
/obj/effect/spawner/lootdrop/effects/landmines
name = "stun or explosive landmine spawner"
icon_state = "landmine_spawner"
lootdoubles = FALSE
loot = list(
"" = 84,
/obj/effect/mine/explosive = 1,
/obj/effect/mine/stun = 5,
)
/obj/effect/spawner/lootdrop/effects/landmines/safe
name = "stun landmine spawner"
lootdoubles = FALSE
loot = list(
"" = 80,
/obj/effect/mine/stun = 10,
)
/obj/effect/spawner/lootdrop/effects/landmines/smart
name = "smart landmine spawner"
lootdoubles = FALSE
loot = list(
"" = 80,
/obj/effect/mine/stun/smart = 10,
/obj/effect/mine/stun/smart/adv = 5,
/obj/effect/mine/stun/smart/heavy = 5,
)
/obj/effect/spawner/lootdrop/effects/landmines/unsafe
name = "dangerous landmine spawner"
lootdoubles = FALSE
loot = list(
"" = 85,
/obj/effect/mine/explosive = 10,
/obj/effect/mine/gas/plasma = 5,
/obj/effect/mine/gas/n2o = 5,
)
/obj/effect/spawner/lootdrop/effects/landmines/funny
name = "harmless landmine spawner"
lootdoubles = FALSE
loot = list(
"" = 85,
/obj/effect/mine/sound = 10,
/obj/effect/mine/sound/bwoink = 5,
/obj/effect/mine/gas = 5,
)
/obj/effect/spawner/lootdrop/effects/landmines/ancient
name = "stun or ancient explosive landmine spawner"
icon_state = "landmine_spawner"
lootdoubles = FALSE
loot = list(
"" = 84,
/obj/effect/mine/explosive/ancient = 1,
/obj/effect/mine/stun = 5,
)
/obj/effect/spawner/lootdrop/three_course_meal
name = "three course meal spawner"
lootcount = 3
lootdoubles = FALSE
var/soups = list(
/obj/item/reagent_containers/food/snacks/soup/beet,
/obj/item/reagent_containers/food/snacks/soup/sweetpotato,
/obj/item/reagent_containers/food/snacks/soup/stew,
/obj/item/reagent_containers/food/snacks/soup/hotchili,
/obj/item/reagent_containers/food/snacks/soup/nettle,
/obj/item/reagent_containers/food/snacks/soup/meatball)
var/salads = list(
/obj/item/reagent_containers/food/snacks/salad/herbsalad,
/obj/item/reagent_containers/food/snacks/salad/validsalad,
/obj/item/reagent_containers/food/snacks/salad/fruit,
/obj/item/reagent_containers/food/snacks/salad/jungle,
/obj/item/reagent_containers/food/snacks/salad/aesirsalad)
var/mains = list(
/obj/item/reagent_containers/food/snacks/bearsteak,
/obj/item/reagent_containers/food/snacks/enchiladas,
/obj/item/reagent_containers/food/snacks/stewedsoymeat,
/obj/item/reagent_containers/food/snacks/burger/bigbite,
/obj/item/reagent_containers/food/snacks/burger/superbite,
/obj/item/reagent_containers/food/snacks/burger/fivealarm)
/obj/effect/spawner/lootdrop/three_course_meal/Initialize(mapload)
loot = list(pick(soups) = 1,pick(salads) = 1,pick(mains) = 1)
. = ..()
/obj/effect/spawner/lootdrop/random_meat
name = "meat loot spawner"
/obj/effect/spawner/lootdrop/random_meat/Initialize(mapload)
var/item = pick(typesof(/obj/item/reagent_containers/food/snacks/meat/slab))
new item(loc)
return INITIALIZE_HINT_QDEL
/obj/effect/spawner/lootdrop/maintenance
name = "maintenance loot spawner"
// see code/_globalvars/lists/maintenance_loot.dm for loot table
//Start of Yogstation change: Refactors maintenance loot.
/obj/effect/spawner/lootdrop/maintenance/Initialize(mapload)
loot = GLOB.maintenance_loot_makeshift
lootcount = 1
switch(rand(1,10000))
if(1 to 5)
loot = GLOB.maintenance_loot_serious
if(6 to 30)
loot = GLOB.maintenance_loot_major
if(31 to 400)
loot = GLOB.maintenance_loot_moderate
if(401 to 2000)
loot = GLOB.maintenance_loot_minor
for(var/obj/O in get_turf(src))
if(O.density) //Must be a table or a locker or something.
lootcount = rand(lootcount,lootcount*6)
break
if(2001 to 4000)
loot = GLOB.maintenance_loot_makeshift
for(var/obj/O in get_turf(src))
if(O.density) //Must be a table or a locker or something.
lootcount = rand(lootcount,lootcount*6)
break
if(4001 to 10000)
loot = GLOB.maintenance_loot_traditional
for(var/obj/O in get_turf(src))
if(O.density) //Must be a table or a locker or something.
lootcount = rand(lootcount,lootcount*3)
break
if(HAS_TRAIT(SSstation, STATION_TRAIT_FILLED_MAINT))
lootcount = CEILING(lootcount * 1.5, 1)
else if(HAS_TRAIT(SSstation, STATION_TRAIT_EMPTY_MAINT))
lootcount = CEILING(lootcount * 0.5, 1)
. = ..()
//End of Yogstation change: Refactors maintenance loot.
/obj/effect/spawner/lootdrop/maintenance/two
name = "2 x maintenance loot spawner"
lootcount = 2
/obj/effect/spawner/lootdrop/maintenance/three
name = "3 x maintenance loot spawner"
lootcount = 3
/obj/effect/spawner/lootdrop/maintenance/four
name = "4 x maintenance loot spawner"
lootcount = 4
/obj/effect/spawner/lootdrop/maintenance/five
name = "5 x maintenance loot spawner"
lootcount = 5
/obj/effect/spawner/lootdrop/maintenance/six
name = "6 x maintenance loot spawner"
lootcount = 6
/obj/effect/spawner/lootdrop/maintenance/seven
name = "7 x maintenance loot spawner"
lootcount = 7
/obj/effect/spawner/lootdrop/maintenance/eight
name = "8 x maintenance loot spawner"
lootcount = 8
/obj/effect/spawner/lootdrop/crate_spawner
name = "lootcrate spawner" //USE PROMO CODE "SELLOUT" FOR 20% OFF!
lootdoubles = FALSE
loot = list(
/obj/structure/closet/crate/secure/loot = 20,
"" = 80
)
/obj/effect/spawner/lootdrop/organ_spawner
name = "organ spawner"
loot = list(
/obj/item/organ/heart/gland/electric = 3,
/obj/item/organ/heart/gland/trauma = 4,
/obj/item/organ/heart/gland/egg = 7,
/obj/item/organ/heart/gland/chem = 5,
/obj/item/organ/heart/gland/mindshock = 5,
/obj/item/organ/heart/gland/gas = 7, //Yogstation change: plasma -> gas
/obj/item/organ/heart/gland/pop = 5,
/obj/item/organ/heart/gland/slime = 4,
/obj/item/organ/heart/gland/spiderman = 5,
/obj/item/organ/heart/gland/ventcrawling = 1,
/obj/item/organ/body_egg/alien_embryo = 1,
/obj/item/organ/regenerative_core = 2)
lootcount = 3
/obj/effect/spawner/lootdrop/two_percent_xeno_egg_spawner
name = "2% chance xeno egg spawner"
loot = list(
/obj/effect/decal/remains/xeno = 49,
/obj/effect/spawner/xeno_egg_delivery = 1)
/obj/effect/spawner/lootdrop/costume
name = "random costume spawner"
/obj/effect/spawner/lootdrop/costume/Initialize(mapload)
loot = list()
for(var/path in subtypesof(/obj/effect/spawner/bundle/costume))
loot[path] = TRUE
. = ..()
// Minor lootdrops follow
/obj/effect/spawner/lootdrop/minor/beret_or_rabbitears
name = "beret or rabbit ears spawner"
loot = list(
/obj/item/clothing/head/beret = 1,
/obj/item/clothing/head/rabbitears = 1)
/obj/effect/spawner/lootdrop/minor/bowler_or_that
name = "bowler or top hat spawner"
loot = list(
/obj/item/clothing/head/bowler = 1,
/obj/item/clothing/head/that = 1)
/obj/effect/spawner/lootdrop/minor/kittyears_or_rabbitears
name = "kitty ears or rabbit ears spawner"
loot = list(
/obj/item/clothing/head/kitty = 1,
/obj/item/clothing/head/rabbitears = 1)
/obj/effect/spawner/lootdrop/minor/pirate_or_bandana
name = "pirate hat or bandana spawner"
loot = list(
/obj/item/clothing/head/pirate = 1,
/obj/item/clothing/head/pirate/bandana = 1)
/obj/effect/spawner/lootdrop/minor/twentyfive_percent_cyborg_mask
name = "25% cyborg mask spawner"
loot = list(
/obj/item/clothing/mask/gas/cyborg = 25,
"" = 75)
/obj/effect/spawner/lootdrop/aimodule_harmless // These shouldn't allow the AI to start butchering people
name = "harmless AI module spawner"
loot = list(
/obj/item/aiModule/core/full/asimov,
/obj/item/aiModule/core/full/asimovpp,
/obj/item/aiModule/core/full/crewsimov,
/obj/item/aiModule/core/full/hippocratic,
/obj/item/aiModule/core/full/paladin_devotion,
/obj/item/aiModule/core/full/paladin,
/obj/item/aiModule/core/full/chapai,
/obj/item/aiModule/core/full/silicop,
/obj/item/aiModule/core/full/mother,
/obj/item/aiModule/core/full/druid
)
/obj/effect/spawner/lootdrop/aimodule_neutral // These shouldn't allow the AI to start butchering people without reason
name = "neutral AI module spawner"
loot = list(
/obj/item/aiModule/core/full/ceo,
/obj/item/aiModule/core/full/maintain,
/obj/item/aiModule/core/full/drone,
/obj/item/aiModule/core/full/peacekeeper,
/obj/item/aiModule/core/full/reporter,
/obj/item/aiModule/core/full/robocop,
/obj/item/aiModule/core/full/liveandletlive,
/obj/item/aiModule/core/full/hulkamania,
/obj/item/aiModule/core/full/cowboy,
/obj/item/aiModule/core/full/metaexperiment,
/obj/item/aiModule/core/full/spotless,
/obj/item/aiModule/core/full/construction,
/obj/item/aiModule/core/full/researcher,
/obj/item/aiModule/core/full/clown,
/obj/item/aiModule/core/full/detective,
/obj/item/aiModule/core/full/wafflehouse
)
/obj/effect/spawner/lootdrop/aimodule_harmful // These will get the shuttle called
name = "harmful AI module spawner"
loot = list(
/obj/item/aiModule/core/full/antimov,
/obj/item/aiModule/core/full/balance,
/obj/item/aiModule/core/full/tyrant,
/obj/item/aiModule/core/full/thermurderdynamic,
/obj/item/aiModule/core/full/siliconcollective,
/obj/item/aiModule/core/full/damaged
)
// Tech storage circuit board spawners
/obj/effect/spawner/lootdrop/techstorage
name = "generic circuit board spawner"
lootdoubles = FALSE
fan_out_items = TRUE
lootcount = INFINITY
/obj/effect/spawner/lootdrop/techstorage/service
name = "service circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/arcade/battle,
/obj/item/circuitboard/computer/arcade/orion_trail,
/obj/item/circuitboard/machine/autolathe,
/obj/item/circuitboard/computer/mining,
/obj/item/circuitboard/machine/ore_redemption,
/obj/item/circuitboard/machine/mining_equipment_vendor,
/obj/item/circuitboard/machine/microwave,
/obj/item/circuitboard/machine/chem_dispenser/drinks,
/obj/item/circuitboard/machine/chem_dispenser/drinks/beer,
/obj/item/circuitboard/computer/slot_machine
)
/obj/effect/spawner/lootdrop/techstorage/rnd
name = "RnD circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/aifixer,
/obj/item/circuitboard/machine/rdserver,
/obj/item/circuitboard/machine/mechfab,
/obj/item/circuitboard/machine/circuit_imprinter/department,
/obj/item/circuitboard/computer/teleporter,
/obj/item/circuitboard/machine/destructive_analyzer,
/obj/item/circuitboard/computer/rdconsole,
/obj/item/circuitboard/computer/nanite_chamber_control,
/obj/item/circuitboard/computer/nanite_cloud_controller,
/obj/item/circuitboard/machine/nanite_chamber,
/obj/item/circuitboard/machine/nanite_programmer,
/obj/item/circuitboard/machine/nanite_program_hub
)
/obj/effect/spawner/lootdrop/techstorage/security
name = "security circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/secure_data,
/obj/item/circuitboard/computer/security,
/obj/item/circuitboard/computer/prisoner
)
/obj/effect/spawner/lootdrop/techstorage/engineering
name = "engineering circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/atmos_alert,
/obj/item/circuitboard/computer/stationalert,
/obj/item/circuitboard/computer/powermonitor
)
/obj/effect/spawner/lootdrop/techstorage/tcomms
name = "tcomms circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/message_monitor,
/obj/item/circuitboard/machine/telecomms/broadcaster,
/obj/item/circuitboard/machine/telecomms/bus,
/obj/item/circuitboard/machine/telecomms/server,
/obj/item/circuitboard/machine/telecomms/receiver,
/obj/item/circuitboard/machine/telecomms/processor,
/obj/item/circuitboard/machine/announcement_system,
/obj/item/circuitboard/computer/comm_server,
/obj/item/circuitboard/computer/comm_monitor
)
/obj/effect/spawner/lootdrop/techstorage/medical
name = "medical circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/cloning,
/obj/item/circuitboard/machine/clonepod,
/obj/item/circuitboard/machine/chem_dispenser,
/obj/item/circuitboard/computer/scan_consolenew,
/obj/item/circuitboard/computer/med_data,
/obj/item/circuitboard/machine/smoke_machine,
/obj/item/circuitboard/machine/chem_master,
/obj/item/circuitboard/machine/clonescanner,
/obj/item/circuitboard/computer/pandemic,
/obj/item/circuitboard/machine/chem_heater
)
/obj/effect/spawner/lootdrop/techstorage/AI
name = "secure AI circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/aiupload,
/obj/item/circuitboard/computer/borgupload
)
/obj/effect/spawner/lootdrop/techstorage/command
name = "secure command circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/crew,
/obj/item/circuitboard/computer/communications,
/obj/item/circuitboard/computer/card
)
/obj/effect/spawner/lootdrop/techstorage/RnD_secure
name = "secure RnD circuit board spawner"
loot = list(
/obj/item/circuitboard/computer/mecha_control,
/obj/item/circuitboard/computer/apc_control,
/obj/item/circuitboard/computer/robotics
)
/obj/effect/spawner/lootdrop/twenty_percent_drip_suit
name = "20% incredibly fashionable outfit spawner"
lootdoubles = FALSE
loot = list(
/obj/item/clothing/under/costume/drip = 20,
"" = 80)
/obj/effect/spawner/lootdrop/twenty_percent_drip_shoes
name = "20% fashionable shoes spawner"
lootdoubles = FALSE
loot = list(
/obj/item/clothing/shoes/drip = 20,
"" = 80)
//Mob spawners
/obj/effect/spawner/lootdrop/mob
icon = 'icons/mob/animal.dmi'
icon_state = "random_kitchen"
/obj/effect/spawner/lootdrop/mob/kitchen_animal
name = "kitchen animal"
icon = 'icons/mob/animal.dmi'
icon_state = "random_kitchen"
lootdoubles = 0
lootcount = 1
loot = list(/mob/living/simple_animal/hostile/retaliate/goat/pete = 1,
/mob/living/simple_animal/cow/betsy = 1,
/mob/living/simple_animal/sheep/shawn = 1)
/obj/effect/spawner/lootdrop/mob/marrow_weaver
name = "40% marrow weaver spawner"
icon = 'yogstation/icons/mob/lavaland/lavaland_monsters.dmi'
icon_state = "weaver"
lootdoubles = 0
lootcount = 1
loot = list(/mob/living/simple_animal/hostile/asteroid/marrowweaver = 35,
/mob/living/simple_animal/hostile/asteroid/marrowweaver/ice = 5,
"" = 60)
/obj/effect/spawner/lootdrop/random_anomaly_core
name = "anomaly core spawner"
/obj/effect/spawner/lootdrop/random_anomaly_core/Initialize(mapload)
var/item = pick(typesof(/obj/item/assembly/signaler/anomaly))
new item(loc)
return INITIALIZE_HINT_QDEL