diff --git a/_maps/RandomRuins/IceRuins/icemoon_underground_abandoned_village.dmm b/_maps/RandomRuins/IceRuins/icemoon_underground_abandoned_village.dmm index 1db3a2b78d4..87bbd670657 100644 --- a/_maps/RandomRuins/IceRuins/icemoon_underground_abandoned_village.dmm +++ b/_maps/RandomRuins/IceRuins/icemoon_underground_abandoned_village.dmm @@ -447,7 +447,7 @@ /turf/open/floor/carpet, /area/ruin/powered) "Pp" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/holofloor/wood, /area/ruin/powered) "PQ" = ( diff --git a/_maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm b/_maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm index e8a053530be..1c338c233ea 100644 --- a/_maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm +++ b/_maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm @@ -3300,8 +3300,8 @@ /turf/open/floor/plasteel/grimy, /area/ruin/unpowered/syndicate_lava_base/dormitories) "jr" = ( -/obj/machinery/vending/snack/random{ - extended_inventory = 1 +/obj/effect/spawner/randomsnackvend{ + hacked = 1 }, /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, @@ -3397,8 +3397,8 @@ /turf/open/floor/plasteel/grimy, /area/ruin/unpowered/syndicate_lava_base/dormitories) "jD" = ( -/obj/machinery/vending/cola/random{ - extended_inventory = 1 +/obj/effect/spawner/randomcolavend{ + hacked = 1 }, /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/tile/red{ diff --git a/_maps/RandomRuins/SpaceRuins/clownplanet.dmm b/_maps/RandomRuins/SpaceRuins/clownplanet.dmm index 701afc0873b..47b1036f1d4 100644 --- a/_maps/RandomRuins/SpaceRuins/clownplanet.dmm +++ b/_maps/RandomRuins/SpaceRuins/clownplanet.dmm @@ -347,7 +347,7 @@ /turf/open/floor/bluespace, /area/ruin/powered/clownplanet) "bh" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/stripes/white/box, /turf/open/floor/bluespace, /area/ruin/powered/clownplanet) @@ -361,7 +361,7 @@ }, /area/ruin/powered/clownplanet) "bk" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/stripes/white/box, /turf/open/floor/bluespace, /area/ruin/powered/clownplanet) diff --git a/_maps/RandomRuins/SpaceRuins/listeningstation.dmm b/_maps/RandomRuins/SpaceRuins/listeningstation.dmm index dbd00958c14..122c6fc6db9 100644 --- a/_maps/RandomRuins/SpaceRuins/listeningstation.dmm +++ b/_maps/RandomRuins/SpaceRuins/listeningstation.dmm @@ -710,8 +710,8 @@ /turf/open/floor/plasteel, /area/ruin/space/has_grav/listeningstation) "aY" = ( -/obj/machinery/vending/snack/random{ - extended_inventory = 1 +/obj/effect/spawner/randomsnackvend{ + hacked = 1 }, /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, @@ -827,8 +827,8 @@ /turf/open/floor/plasteel/white/side, /area/ruin/space/has_grav/listeningstation) "bh" = ( -/obj/machinery/vending/cola/random{ - extended_inventory = 1 +/obj/effect/spawner/randomcolavend{ + hacked = 1 }, /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, diff --git a/_maps/RandomZLevels/TheBeach.dmm b/_maps/RandomZLevels/TheBeach.dmm index c0e375d268f..f07fc6d4c62 100644 --- a/_maps/RandomZLevels/TheBeach.dmm +++ b/_maps/RandomZLevels/TheBeach.dmm @@ -671,7 +671,7 @@ /area/awaymission/beach) "ce" = ( /obj/effect/turf_decal/sand, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plating/beach/sand, /area/awaymission/beach) "cf" = ( diff --git a/_maps/RandomZLevels/snowdin.dmm b/_maps/RandomZLevels/snowdin.dmm index d5b591d8ee0..e2c4900e2f6 100644 --- a/_maps/RandomZLevels/snowdin.dmm +++ b/_maps/RandomZLevels/snowdin.dmm @@ -1026,7 +1026,7 @@ /turf/open/floor/plasteel, /area/awaymission/snowdin/post/research) "cF" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, @@ -1444,7 +1444,7 @@ /turf/open/floor/plating, /area/awaymission/snowdin/post/research) "dm" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, diff --git a/_maps/map_files/Deltastation/DeltaStation2.dmm b/_maps/map_files/Deltastation/DeltaStation2.dmm index 2071b69b1f3..71e30911b61 100644 --- a/_maps/map_files/Deltastation/DeltaStation2.dmm +++ b/_maps/map_files/Deltastation/DeltaStation2.dmm @@ -1820,7 +1820,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/entry) "afb" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/machinery/light{ dir = 1 }, @@ -1911,7 +1911,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/entry) "afz" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/secondary/entry) @@ -2588,7 +2588,7 @@ /turf/open/floor/plating, /area/maintenance/starboard/fore) "aim" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/decal/cleanable/cobweb, /obj/effect/turf_decal/tile/neutral{ dir = 1 @@ -2603,7 +2603,7 @@ /turf/open/floor/plasteel/dark, /area/maintenance/starboard/fore) "ain" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/tile/neutral{ dir = 1 @@ -7202,7 +7202,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/entry) "arO" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/decal/cleanable/dirt, /obj/machinery/camera{ c_tag = "Arrivals - Aft"; @@ -7212,7 +7212,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/entry) "arP" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/item/radio/intercom{ pixel_y = 26 }, @@ -39409,7 +39409,7 @@ /turf/open/floor/plasteel, /area/engine/break_room) "bzp" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/machinery/newscaster{ pixel_x = 32 }, @@ -40439,7 +40439,7 @@ /turf/open/floor/plasteel, /area/engine/break_room) "bAW" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/red{ dir = 1 }, @@ -40837,7 +40837,7 @@ /turf/open/floor/plasteel/dark, /area/bridge) "bBA" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/tile/blue{ dir = 1 }, @@ -40847,7 +40847,7 @@ /turf/open/floor/plasteel/dark, /area/bridge) "bBB" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/blue{ dir = 1 }, @@ -56502,7 +56502,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/central) "ccU" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/machinery/light{ dir = 8 }, @@ -59731,7 +59731,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/central) "cjy" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/structure/sign/poster/official/ian{ pixel_y = -32 }, @@ -65447,7 +65447,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/command) "cvE" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/secondary/command) @@ -74701,13 +74701,13 @@ /turf/closed/wall, /area/medical/medbay/central) "cNE" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/machinery/light, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/primary/central) "cNF" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/primary/central) @@ -75842,7 +75842,7 @@ /turf/open/floor/plasteel/grimy, /area/crew_quarters/dorms) "cPX" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /obj/machinery/atmospherics/pipe/simple/supply/hidden/layer4, /obj/machinery/atmospherics/pipe/simple/scrubbers/hidden/layer2, @@ -76624,7 +76624,7 @@ /turf/open/floor/plasteel/grimy, /area/crew_quarters/dorms) "cRw" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/structure/extinguisher_cabinet{ pixel_x = -26 }, @@ -82058,7 +82058,7 @@ /turf/open/floor/plasteel, /area/medical/medbay/central) "dbz" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/machinery/status_display/evac{ pixel_x = 32 }, @@ -86778,7 +86778,7 @@ /turf/open/floor/plasteel, /area/science/research/abandoned) "dln" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/structure/cable, /obj/effect/turf_decal/tile/purple, /obj/effect/turf_decal/tile/purple{ @@ -100292,7 +100292,7 @@ /turf/open/floor/plasteel, /area/science/research) "dPQ" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/machinery/light, /obj/machinery/status_display/evac{ pixel_y = -32 @@ -105010,7 +105010,7 @@ }, /area/chapel/main) "eaE" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/secondary/exit/departure_lounge) @@ -105265,7 +105265,7 @@ /obj/machinery/light{ dir = 8 }, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/secondary/exit/departure_lounge) @@ -108272,7 +108272,7 @@ /turf/open/floor/plasteel/white, /area/medical/chemistry) "fxd" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/cafeteria, /area/security/prison) "fxp" = ( @@ -110861,7 +110861,7 @@ /turf/open/floor/plasteel/white, /area/medical/surgery/room_b) "mMY" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/bot, /turf/open/floor/plasteel, /area/hallway/primary/central) diff --git a/_maps/map_files/IceBoxStation/IceBoxStation.dmm b/_maps/map_files/IceBoxStation/IceBoxStation.dmm index 1ed3f865110..d501be08c85 100644 --- a/_maps/map_files/IceBoxStation/IceBoxStation.dmm +++ b/_maps/map_files/IceBoxStation/IceBoxStation.dmm @@ -105,7 +105,7 @@ /turf/open/floor/plasteel, /area/security/prison) "aam" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel, /area/engine/break_room) "aan" = ( @@ -6813,7 +6813,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/fore) "aoF" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/red, /turf/open/floor/plasteel, /area/hallway/primary/fore) @@ -15991,7 +15991,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/central) "aJv" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/dark, /area/hallway/primary/central) "aJw" = ( @@ -16442,7 +16442,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/central) "aKG" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel/dark, /area/hallway/primary/central) "aKH" = ( @@ -17130,7 +17130,7 @@ /turf/open/floor/wood, /area/crew_quarters/bar) "aMC" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/wood, /area/crew_quarters/bar) "aMD" = ( @@ -17755,7 +17755,7 @@ /turf/open/floor/plasteel, /area/hallway/secondary/entry) "aOf" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/stripes/line{ dir = 9 }, @@ -17794,7 +17794,7 @@ /turf/open/floor/plasteel/grimy, /area/hallway/secondary/entry) "aOk" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/dark, /area/hallway/secondary/entry) "aOl" = ( @@ -18260,7 +18260,7 @@ /turf/open/floor/plasteel/grimy, /area/hallway/secondary/entry) "aPy" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel/dark, /area/hallway/secondary/entry) "aPz" = ( @@ -18722,7 +18722,7 @@ /turf/open/floor/plasteel, /area/crew_quarters/locker) "aQR" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel, /area/crew_quarters/locker) "aQS" = ( @@ -19607,7 +19607,7 @@ }, /area/hallway/secondary/exit) "aTl" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/machinery/status_display/evac{ layer = 4; pixel_y = 32 @@ -23314,7 +23314,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/starboard) "bcc" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/wood, /area/bridge/meeting_room) "bcd" = ( @@ -23674,7 +23674,7 @@ /turf/open/floor/plasteel/white/corner, /area/hallway/primary/starboard) "bdd" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/wood, /area/bridge/meeting_room) "bde" = ( @@ -24948,7 +24948,7 @@ dir = 1 }, /obj/effect/turf_decal/stripes/line, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel, /area/hallway/secondary/entry) "bgj" = ( @@ -55575,7 +55575,7 @@ dir = 8 }, /obj/effect/turf_decal/tile/brown, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/brown{ dir = 4 }, @@ -56413,7 +56413,7 @@ /turf/open/floor/plasteel/white, /area/science/genetics) "xfd" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/white, /area/science/research) "xfl" = ( diff --git a/_maps/map_files/MetaStation/MetaStation.dmm b/_maps/map_files/MetaStation/MetaStation.dmm index 595329adffd..c25896d3a75 100644 --- a/_maps/map_files/MetaStation/MetaStation.dmm +++ b/_maps/map_files/MetaStation/MetaStation.dmm @@ -7358,7 +7358,7 @@ /area/crew_quarters/fitness/recreation) "aql" = ( /obj/machinery/light, -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, @@ -20344,7 +20344,7 @@ /turf/closed/wall, /area/crew_quarters/locker) "aWp" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, @@ -26409,7 +26409,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/port) "bkh" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/trimline/brown/filled/line{ dir = 1 }, @@ -28275,7 +28275,7 @@ /turf/open/floor/plasteel, /area/hallway/primary/central) "boN" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/machinery/camera{ c_tag = "Bar - Fore" }, @@ -28777,7 +28777,7 @@ /turf/open/floor/plasteel, /area/vacant_room/office) "bqe" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel, /area/hallway/primary/port) "bqf" = ( @@ -29676,7 +29676,7 @@ /turf/open/floor/plating, /area/hallway/secondary/entry) "bsl" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/delivery, /turf/open/floor/plasteel, /area/hallway/secondary/entry) @@ -29922,7 +29922,7 @@ /obj/machinery/light_switch{ pixel_y = -25 }, -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/dark, /area/bridge) "bsW" = ( @@ -29981,7 +29981,7 @@ /obj/structure/window/reinforced{ dir = 4 }, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel/dark, /area/bridge) "btb" = ( @@ -32214,7 +32214,7 @@ /turf/closed/wall, /area/hallway/secondary/command) "bzK" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/dark, /area/hallway/secondary/command) "bzL" = ( @@ -34786,7 +34786,7 @@ /turf/open/floor/plasteel, /area/gateway) "bGQ" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, @@ -39534,7 +39534,7 @@ /turf/open/floor/wood, /area/library) "bTD" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/machinery/newscaster{ pixel_x = -30 }, @@ -45996,7 +45996,7 @@ dir = 8; pixel_x = 24 }, -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/white/side{ dir = 4 }, @@ -53381,7 +53381,7 @@ /turf/open/floor/plasteel/white, /area/medical/chemistry) "cCZ" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel/dark, /area/hallway/primary/aft) "cDa" = ( @@ -55553,7 +55553,7 @@ /turf/open/floor/plasteel/dark, /area/hallway/secondary/exit/departure_lounge) "cJD" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/structure/sign/map/right{ desc = "A framed picture of the station. Clockwise from security in red at the top, you see engineering in yellow, science in purple, escape in checkered red-and-white, medbay in green, arrivals in checkered red-and-blue, and then cargo in brown."; icon_state = "map-right-MS"; @@ -71744,7 +71744,7 @@ dir = 4 }, /obj/effect/turf_decal/tile/green, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel/white/side{ dir = 8 }, @@ -75207,7 +75207,7 @@ /turf/open/floor/plasteel/dark, /area/medical/morgue) "rSL" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel, /area/maintenance/department/science) "rSR" = ( diff --git a/_maps/map_files/PubbyStation/PubbyStation.dmm b/_maps/map_files/PubbyStation/PubbyStation.dmm index 1c009c0d623..fc5dfc24300 100644 --- a/_maps/map_files/PubbyStation/PubbyStation.dmm +++ b/_maps/map_files/PubbyStation/PubbyStation.dmm @@ -11079,7 +11079,7 @@ /turf/open/floor/plating, /area/maintenance/department/security/brig) "aCd" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plating, /area/maintenance/department/security/brig) "aCe" = ( @@ -33115,14 +33115,14 @@ /obj/effect/turf_decal/tile/yellow{ dir = 1 }, -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/plasteel, /area/engine/lobby) "bLT" = ( /obj/effect/turf_decal/tile/yellow{ dir = 1 }, -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/plasteel, /area/engine/lobby) "bLU" = ( @@ -48092,7 +48092,7 @@ /turf/open/floor/plating, /area/maintenance/department/security/brig) "gLF" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /obj/effect/turf_decal/tile/neutral{ dir = 1 }, diff --git a/_maps/shuttles/emergency_rollerdome.dmm b/_maps/shuttles/emergency_rollerdome.dmm index 0be826925fe..ea822fb1bb5 100644 --- a/_maps/shuttles/emergency_rollerdome.dmm +++ b/_maps/shuttles/emergency_rollerdome.dmm @@ -182,7 +182,7 @@ /turf/open/floor/eighties, /area/shuttle/escape) "Dh" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/wood, /area/shuttle/escape) "DR" = ( @@ -200,7 +200,7 @@ /turf/open/floor/wood, /area/shuttle/escape) "HA" = ( -/obj/machinery/vending/cola/random, +/obj/effect/spawner/randomcolavend, /turf/open/floor/wood, /area/shuttle/escape) "HS" = ( diff --git a/_maps/templates/shelter_3.dmm b/_maps/templates/shelter_3.dmm index c4a0eec6c25..38c9fd0089d 100644 --- a/_maps/templates/shelter_3.dmm +++ b/_maps/templates/shelter_3.dmm @@ -244,7 +244,7 @@ /turf/open/floor/carpet/black, /area/survivalpod) "L" = ( -/obj/machinery/vending/snack/random, +/obj/effect/spawner/randomsnackvend, /turf/open/floor/carpet/black, /area/survivalpod) "M" = ( diff --git a/code/controllers/subsystem/atoms.dm b/code/controllers/subsystem/atoms.dm index 4e4543388c8..d0f485849d3 100644 --- a/code/controllers/subsystem/atoms.dm +++ b/code/controllers/subsystem/atoms.dm @@ -154,8 +154,3 @@ SUBSYSTEM_DEF(atoms) var/initlog = InitLog() if(initlog) text2file(initlog, "[GLOB.log_directory]/initialize.log") - -#undef BAD_INIT_QDEL_BEFORE -#undef BAD_INIT_DIDNT_INIT -#undef BAD_INIT_SLEPT -#undef BAD_INIT_NO_HINT diff --git a/code/game/objects/effects/spawners/vending.dm b/code/game/objects/effects/spawners/vending.dm new file mode 100644 index 00000000000..399c2166fac --- /dev/null +++ b/code/game/objects/effects/spawners/vending.dm @@ -0,0 +1,34 @@ +/obj/effect/spawner/randomsnackvend + icon = 'icons/obj/vending.dmi' + icon_state = "random_snack" + name = "spawn random snack vending machine" + desc = "Automagically transforms into a random snack vendor. If you see this while in a shift, please create a bug report." + ///whether it hacks the vendor on spawn currently used only by stinky mapedits + var/hacked = FALSE + +/obj/effect/spawner/randomsnackvend/Initialize(mapload) + ..() + + var/random_vendor = pick(subtypesof(/obj/machinery/vending/snack)) + var/obj/machinery/vending/snack/vend = new random_vendor(loc) + vend.extended_inventory = TRUE + + return INITIALIZE_HINT_QDEL + + +/obj/effect/spawner/randomcolavend + icon = 'icons/obj/vending.dmi' + icon_state = "random_cola" + name = "spawn random cola vending machine" + desc = "Automagically transforms into a random cola vendor. If you see this while in a shift, please create a bug report." + ///whether it hacks the vendor on spawn currently used only by stinky mapedits + var/hacked = FALSE + +/obj/effect/spawner/randomcolavend/Initialize(mapload) + ..() + + var/random_vendor = pick(subtypesof(/obj/machinery/vending/cola)) + var/obj/machinery/vending/cola/vend = new random_vendor(loc) + vend.extended_inventory = TRUE + + return INITIALIZE_HINT_QDEL diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index ce1c1bec4c4..635a2f79948 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -48,7 +48,7 @@ for(var/datum/plant_gene/trait/T in seed.genes) T.on_new(src, loc) - ..() //Only call it here because we want all the genes and shit to be applied before we add edibility. God this code is a mess. + . = ..() //Only call it here because we want all the genes and shit to be applied before we add edibility. God this code is a mess. seed.prepare_result(src) transform *= TRANSFORM_USING_VARIABLE(seed.potency, 100) + 0.5 //Makes the resulting produce's sprite larger or smaller based on potency! diff --git a/code/modules/unit_tests/_unit_tests.dm b/code/modules/unit_tests/_unit_tests.dm index 04c950f7cfd..4172aed5d9d 100644 --- a/code/modules/unit_tests/_unit_tests.dm +++ b/code/modules/unit_tests/_unit_tests.dm @@ -42,6 +42,7 @@ #include "confusion.dm" #include "emoting.dm" #include "heretic_knowledge.dm" +#include "initialize_sanity.dm" #include "keybinding_init.dm" #include "machine_disassembly.dm" #include "medical_wounds.dm" diff --git a/code/modules/unit_tests/initialize_sanity.dm b/code/modules/unit_tests/initialize_sanity.dm new file mode 100644 index 00000000000..d183f530c85 --- /dev/null +++ b/code/modules/unit_tests/initialize_sanity.dm @@ -0,0 +1,11 @@ +/datum/unit_test/initialize_sanity/Run() + if(length(SSatoms.BadInitializeCalls)) + Fail("Bad Initialize() calls detected. Please read logs.") + var/list/init_failures_to_text = list( + "[BAD_INIT_QDEL_BEFORE]" = "Qdeleted Before Initialized", + "[BAD_INIT_DIDNT_INIT]" = "Did Not Initialize", + "[BAD_INIT_SLEPT]" = "Initialize() Slept", + "[BAD_INIT_NO_HINT]" = "No Initialize() Hint Returned", + ) + for(var/failure in SSatoms.BadInitializeCalls) + log_world("[failure]: [init_failures_to_text["[SSatoms.BadInitializeCalls[failure]]"]]") // You like stacked brackets? diff --git a/code/modules/vending/cola.dm b/code/modules/vending/cola.dm index 2c59a727312..df71a93ad2c 100644 --- a/code/modules/vending/cola.dm +++ b/code/modules/vending/cola.dm @@ -30,20 +30,6 @@ machine_name = "Robust Softdrinks" icon_state = "refill_cola" -/obj/machinery/vending/cola/random - name = "\improper Random Drinkies" - icon_state = "random_cola" - desc = "Uh oh!" - circuit = null - -/obj/machinery/vending/cola/random/Initialize() - // No need to call parent, we're not doing anything with this machine. Just picking a new type of machine to use, spawning it and deleting ourselves. - SHOULD_CALL_PARENT(FALSE) - - var/T = pick(subtypesof(/obj/machinery/vending/cola) - /obj/machinery/vending/cola/random) - new T(loc) - return INITIALIZE_HINT_QDEL - /obj/machinery/vending/cola/blue icon_state = "Cola_Machine" light_mask = "cola-light-mask" diff --git a/code/modules/vending/snack.dm b/code/modules/vending/snack.dm index 952e34effb1..1a3c20e6023 100644 --- a/code/modules/vending/snack.dm +++ b/code/modules/vending/snack.dm @@ -26,20 +26,6 @@ /obj/item/vending_refill/snack machine_name = "Getmore Chocolate Corp" -/obj/machinery/vending/snack/random - name = "\improper Random Snackies" - icon_state = "random_snack" - desc = "Uh oh!" - circuit = null - -/obj/machinery/vending/snack/random/Initialize() - // No need to call parent, we're not doing anything with this machine. Just picking a new type of machine to use, spawning it and deleting ourselves. - SHOULD_CALL_PARENT(FALSE) - - var/T = pick(subtypesof(/obj/machinery/vending/snack) - /obj/machinery/vending/snack/random) - new T(loc) - return INITIALIZE_HINT_QDEL - /obj/machinery/vending/snack/blue icon_state = "snackblue" diff --git a/tgstation.dme b/tgstation.dme index bdef56d2cdd..b7b238ceacb 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -970,6 +970,7 @@ #include "code\game\objects\effects\spawners\structure.dm" #include "code\game\objects\effects\spawners\traps.dm" #include "code\game\objects\effects\spawners\vaultspawner.dm" +#include "code\game\objects\effects\spawners\vending.dm" #include "code\game\objects\effects\spawners\xeno_egg_delivery.dm" #include "code\game\objects\effects\temporary_visuals\cult.dm" #include "code\game\objects\effects\temporary_visuals\miscellaneous.dm"