Files
Bubberstation/code/game/objects/effects/spawners/vending.dm
EgorDinamit 28f1a304a2 var/hacked now actually does something in vendor spawners (#56144)
Oversight made by @TiviPlus when making #55147
var/hacked wasn't actually used in code and instead, all spawner vendors were instantly hacked.
fixes #56101
2021-01-14 14:08:36 +00:00

35 lines
1.2 KiB
Plaintext

/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 = hacked
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 = hacked
return INITIALIZE_HINT_QDEL