mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
## About The Pull Request #Nitrogen4Vox I know we have low amount of vox players but this feels like a no-brainer change. Also this updates the emergency nitrogen tank sprite to be consistent with tg's. <img width="835" height="458" alt="image" src="https://github.com/user-attachments/assets/ba14a469-c8eb-4aaa-a806-788b38a7f451" /> ## Changelog 🆑 Robwo add: Added emergency n2 tanks to oxygen closets for vox. /🆑
192 lines
5.7 KiB
Plaintext
192 lines
5.7 KiB
Plaintext
/* Utility Closets
|
|
* Contains:
|
|
* Emergency Closet
|
|
* Fire Closet
|
|
* Tool Closet
|
|
* Radiation Closet
|
|
* Bombsuit Closet
|
|
* Hydrant
|
|
* First Aid
|
|
*/
|
|
|
|
/*
|
|
* Emergency Closet
|
|
*/
|
|
/obj/structure/closet/emcloset
|
|
name = "emergency closet"
|
|
desc = "It's a storage unit for emergency breath masks and O2 tanks."
|
|
icon_state = "emergency"
|
|
|
|
/obj/structure/closet/emcloset/anchored
|
|
anchored = TRUE
|
|
|
|
/obj/structure/closet/emcloset/Initialize(mapload)
|
|
if(HAS_TRAIT(SSstation, STATION_TRAIT_RADIOACTIVE_NEBULA) && prob(30))
|
|
new /obj/structure/closet/radiation(loc)
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
. = ..()
|
|
|
|
if (prob(1))
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
/obj/structure/closet/emcloset/PopulateContents()
|
|
..()
|
|
|
|
new /obj/item/storage/box/emergency_spacesuit(src) // SKYRAT EDIT ADD
|
|
|
|
if (prob(40))
|
|
new /obj/item/storage/toolbox/emergency(src)
|
|
|
|
//switch (pick_weight(list("small" = 20, "aid" = 20, "tank" = 20, "both" = 30, "nothing" = 10)))
|
|
switch (pick_weight(list("small" = 35, "aid" = 30, "tank" = 20, "both" = 10))) // SKYRAT EDIT CHANGE
|
|
if ("small")
|
|
new /obj/item/tank/internals/emergency_oxygen(src)
|
|
new /obj/item/tank/internals/emergency_oxygen(src)
|
|
new /obj/item/tank/internals/nitrogen/belt/emergency(src) //BUBBER ADDITION - nitrogen 4 vox <3
|
|
new /obj/item/tank/internals/nitrogen/belt/emergency(src) //BUBBER ADDITION - nitrogen 4 vox <3
|
|
new /obj/item/clothing/mask/breath(src)
|
|
new /obj/item/clothing/mask/breath(src)
|
|
|
|
if ("aid")
|
|
new /obj/item/tank/internals/emergency_oxygen(src)
|
|
new /obj/item/tank/internals/nitrogen/belt/emergency(src) //BUBBER ADDITION - nitrogen 4 vox <3
|
|
new /obj/item/storage/medkit/emergency(src)
|
|
new /obj/item/clothing/mask/breath(src)
|
|
|
|
if ("tank")
|
|
new /obj/item/tank/internals/oxygen(src)
|
|
new /obj/item/tank/internals/nitrogen(src) //BUBBER ADDITION - nitrogen 4 vox <3
|
|
new /obj/item/clothing/mask/breath(src)
|
|
|
|
if ("both")
|
|
new /obj/item/tank/internals/emergency_oxygen(src)
|
|
new /obj/item/tank/internals/nitrogen/belt/emergency(src) //BUBBER ADDITION - nitrogen 4 vox <3
|
|
new /obj/item/clothing/mask/breath(src)
|
|
|
|
// SKYRAT EDIT REMOVAL START
|
|
/*
|
|
if ("nothing")
|
|
// doot
|
|
pass()
|
|
*/
|
|
// SKYRAT EDIT REMOVAL END
|
|
|
|
/*
|
|
* Fire Closet
|
|
*/
|
|
/obj/structure/closet/firecloset
|
|
name = "fire-safety closet"
|
|
desc = "It's a storage unit for fire-fighting supplies."
|
|
icon_state = "fire"
|
|
|
|
/obj/structure/closet/firecloset/PopulateContents()
|
|
..()
|
|
new /obj/item/clothing/suit/utility/fire/firefighter(src)
|
|
new /obj/item/clothing/mask/gas/alt(src) //SKYRAT EDIT CHANGE - ORIGINAL: /obj/item/clothing/mask/gas(src)
|
|
new /obj/item/tank/internals/oxygen/red(src)
|
|
new /obj/item/extinguisher(src)
|
|
new /obj/item/clothing/head/utility/hardhat/red(src)
|
|
new /obj/item/crowbar/large/emergency(src)
|
|
new /obj/item/storage/inflatable(src) //SKYRAT EDIT ADDITION - INFLATABLES
|
|
|
|
/obj/structure/closet/firecloset/full/PopulateContents()
|
|
new /obj/item/clothing/suit/utility/fire/firefighter(src)
|
|
new /obj/item/clothing/mask/gas/alt(src) //SKYRAT EDIT CHANGE - ORIGINAL: /obj/item/clothing/mask/gas(src)
|
|
new /obj/item/flashlight(src)
|
|
new /obj/item/tank/internals/oxygen/red(src)
|
|
new /obj/item/extinguisher(src)
|
|
new /obj/item/clothing/head/utility/hardhat/red(src)
|
|
new /obj/item/crowbar/large/emergency(src)
|
|
|
|
/*
|
|
* Tool Closet
|
|
*/
|
|
/obj/structure/closet/toolcloset
|
|
name = "tool closet"
|
|
desc = "It's a storage unit for tools."
|
|
icon_state = "eng"
|
|
icon_door = "eng_tool"
|
|
|
|
/obj/structure/closet/toolcloset/PopulateContents()
|
|
..()
|
|
if(prob(40))
|
|
new /obj/item/clothing/suit/hazardvest(src)
|
|
if(prob(70))
|
|
new /obj/item/flashlight(src)
|
|
if(prob(70))
|
|
new /obj/item/screwdriver(src)
|
|
if(prob(70))
|
|
new /obj/item/wrench(src)
|
|
if(prob(70))
|
|
new /obj/item/weldingtool(src)
|
|
if(prob(70))
|
|
new /obj/item/crowbar(src)
|
|
if(prob(70))
|
|
new /obj/item/wirecutters(src)
|
|
if(prob(70))
|
|
new /obj/item/t_scanner(src)
|
|
if(prob(20))
|
|
new /obj/item/storage/belt/utility(src)
|
|
if(prob(30))
|
|
new /obj/item/stack/cable_coil(src)
|
|
if(prob(30))
|
|
new /obj/item/stack/cable_coil(src)
|
|
if(prob(30))
|
|
new /obj/item/stack/cable_coil(src)
|
|
if(prob(20))
|
|
new /obj/item/multitool(src)
|
|
|
|
if(prob(40))
|
|
new /obj/item/clothing/head/utility/hardhat(src)
|
|
|
|
|
|
/obj/structure/closet/toolcloset/populate_contents_immediate()
|
|
. = ..()
|
|
|
|
// Since they're a traitor objective, they have to be generated immediately.
|
|
if(prob(5))
|
|
new /obj/item/clothing/gloves/color/yellow(src)
|
|
|
|
/*
|
|
* Radiation Closet
|
|
*/
|
|
/obj/structure/closet/radiation
|
|
name = "radiation suit closet"
|
|
desc = "It's a storage unit for rad-protective suits."
|
|
icon_state = "eng"
|
|
icon_door = "eng_rad"
|
|
|
|
/obj/structure/closet/radiation/PopulateContents()
|
|
..()
|
|
new /obj/item/geiger_counter(src)
|
|
new /obj/item/clothing/suit/utility/radiation(src)
|
|
new /obj/item/clothing/head/utility/radiation(src)
|
|
|
|
/*
|
|
* Bombsuit closet
|
|
*/
|
|
/obj/structure/closet/bombcloset
|
|
name = "\improper EOD closet"
|
|
desc = "It's a storage unit for explosion-protective suits."
|
|
icon_state = "bomb"
|
|
|
|
/obj/structure/closet/bombcloset/PopulateContents()
|
|
..()
|
|
new /obj/item/clothing/suit/utility/bomb_suit(src)
|
|
new /obj/item/clothing/under/color/black(src)
|
|
new /obj/item/clothing/shoes/sneakers/black(src)
|
|
new /obj/item/clothing/head/utility/bomb_hood(src)
|
|
|
|
/obj/structure/closet/bombcloset/security/PopulateContents()
|
|
new /obj/item/clothing/suit/utility/bomb_suit/security(src)
|
|
new /obj/item/clothing/under/rank/security/officer(src)
|
|
new /obj/item/clothing/shoes/jackboots(src)
|
|
new /obj/item/clothing/head/utility/bomb_hood/security(src)
|
|
|
|
/obj/structure/closet/bombcloset/white/PopulateContents()
|
|
new /obj/item/clothing/suit/utility/bomb_suit/white(src)
|
|
new /obj/item/clothing/under/color/black(src)
|
|
new /obj/item/clothing/shoes/sneakers/black(src)
|
|
new /obj/item/clothing/head/utility/bomb_hood/white(src)
|