mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 05:26:28 +00:00
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
35 lines
1.2 KiB
Plaintext
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
|