Files
Bubberstation/code/game/objects/effects/spawners/random/vending.dm
SkyratBot aca32b3a34 [MIRROR] Random statue mapping spawner spawns its statues anchored [MDB IGNORE] (#15927)
* Random statue mapping spawner spawns its statues anchored (#69305)

About The Pull Request

    The /obj/effect/spawner/random/decoration/statue spawner will spawn it's statues anchored, assuming they are structures.
    Also refactored graffiti spawner since I was adding support in this area and saw it

Why It's Good For The Game

If you wanna use the spawner to place a statue in a public area, people will shove it around and stuff, which is lame.
So, by anchoring it when it spawns, mappers don't have to worry about people bumping their pre-placed statues around.

* Random statue mapping spawner spawns its statues anchored

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2022-08-31 09:35:24 -07:00

27 lines
987 B
Plaintext

/obj/effect/spawner/random/vending
name = "machinery spawner"
desc = "Randomized electronics for extra fun."
/// whether it hacks the vendor on spawn (only used for mapedits)
var/hacked = FALSE
/obj/effect/spawner/random/vending/make_item(spawn_loc, type_path_to_make)
var/obj/machinery/vending/vending = ..()
if(istype(vending))
vending.extended_inventory = hacked
return vending
/obj/effect/spawner/random/vending/snackvend
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."
icon_state = "snack"
loot_type_path = /obj/machinery/vending/snack
loot = list()
/obj/effect/spawner/random/vending/colavend
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."
icon_state = "cola"
loot_type_path = /obj/machinery/vending/cola
loot = list()