mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 03:32:28 +00:00
Added into code a legacy emergency closet which contains one oxygen tank and one gas mask, committing my version of oldstation. It still needs lighting and wires added as well as room wall-mounted things like air alarms, fire alarms, light switches and lights. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2955 316c924e-a436-60f5-8080-3fe189b3f50e
37 lines
993 B
Plaintext
37 lines
993 B
Plaintext
/obj/structure/closet/emcloset/New()
|
|
..()
|
|
|
|
if (prob(40))
|
|
new /obj/item/weapon/storage/toolbox/emergency(src)
|
|
|
|
switch (pickweight(list("small" = 40, "aid" = 25, "tank" = 20, "both" = 10, "nothing" = 4, "delete" = 1)))
|
|
if ("small")
|
|
new /obj/item/weapon/tank/emergency_oxygen(src)
|
|
new /obj/item/weapon/tank/emergency_oxygen(src)
|
|
|
|
if ("aid")
|
|
new /obj/item/weapon/tank/emergency_oxygen(src)
|
|
new /obj/item/weapon/storage/firstaid/o2(src)
|
|
|
|
if ("tank")
|
|
new /obj/item/weapon/tank/air(src)
|
|
|
|
if ("both")
|
|
new /obj/item/weapon/tank/emergency_oxygen(src)
|
|
new /obj/item/clothing/mask/breath(src)
|
|
|
|
if ("nothing")
|
|
// doot
|
|
|
|
// teehee
|
|
if ("delete")
|
|
del(src)
|
|
|
|
//If you want to re-add fire, just add "fire" = 15 to the pick list.
|
|
/*if ("fire")
|
|
new /obj/structure/closet/firecloset(src.loc)
|
|
del(src)*/
|
|
|
|
/obj/structure/closet/emcloset/legacy/New()
|
|
new /obj/item/weapon/tank/oxygen(src)
|
|
new /obj/item/clothing/mask/gas(src) |