mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 20:11:56 +00:00
* Mapping DLC - Random Spawner Pack [MDB IGNORE] (#60522) First off, I am aware of the Feature Freeze for this month. This PR was initially started in #60401 about a month ago to break the changes into smaller PRs. The end result for this PR is a poor man's attempt at roguelike procedural generation. Enjoy! Link to the README for how the new spawner system works. Added the following new random mapping spawners: pen, crayon, stamp, paper, pamphlet, briefcase, folder, wardrobe closet, wardrobe closet colored, backpack, narcotics, permabrig_weapon, permabrig_gear, prison, material, carpet, ornament, generic decoration, statue, showcase, paint, tool, tool_advanced, tool_rare, material_cheap, material, material_rare, toolbox, flashlight, canister, tank, vending_restock, atmospherics_portable, tracking_beacon, musical_instrument, gambling, coin, money_small, money, money_large, drugs, dice, cigarette_pack, cigarette, cigar, wallet_lighter, lighter, wallet_storage, deck, toy, toy_figure, booze, snack, condiment, cups, minor_healing, injector, surgery_tool, surgery_tool_advanced, surgery_tool_rare, firstaid_rare, firstaid, patient_stretcher, medical supplies, crate, crate_abandoned, girder, grille, lattice, spare_parts, table_or_rack, table, table_fancy, tank_holder, crate_empty, crate_loot, closet_private, closet_hallway, closet_empty, closet_maintencne, chair, chair_maintence, chair_flipped, chair_comfy, barricade, data_disk, graffiti, mopbucket, caution_sign, bucket, soap, box, bin, janitor_supplies, soup, salad, dinner Removed deprecated wizard trap, vault, and armory spawners. * Mapping DLC - Random Spawner Pack [MDB IGNORE] * HNNGH Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
27 lines
1003 B
Plaintext
27 lines
1003 B
Plaintext
/obj/effect/spawner/random/vending
|
|
name = "machinery spawner"
|
|
desc = "Randomized electronics for extra fun."
|
|
var/hacked = FALSE //whether it hacks the vendor on spawn (only used for mapedits)
|
|
|
|
/obj/effect/spawner/random/vending/Initialize(mapload)
|
|
. = ..()
|
|
if(istype(., /obj/machinery/vending))
|
|
var/obj/machinery/vending/vending = .
|
|
vending.extended_inventory = hacked
|
|
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
/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()
|