mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Make code beautiful v2.0 (#41021)
cl refactor: For every object that creates 3+, replaced with a for(var/i in x to y) and sometimes combined into a list /cl [why]: I did something like this in the past. It removes multiple lines in favor of a simple For and sometimes have some lists
This commit is contained in:
@@ -7,28 +7,22 @@
|
||||
|
||||
/obj/structure/closet/gmcloset/PopulateContents()
|
||||
..()
|
||||
new /obj/item/clothing/head/that(src)
|
||||
new /obj/item/radio/headset/headset_srv(src)
|
||||
new /obj/item/radio/headset/headset_srv(src)
|
||||
new /obj/item/clothing/head/that(src)
|
||||
new /obj/item/clothing/under/sl_suit(src)
|
||||
new /obj/item/clothing/under/sl_suit(src)
|
||||
new /obj/item/clothing/under/rank/bartender(src)
|
||||
new /obj/item/clothing/under/rank/bartender(src)
|
||||
new /obj/item/clothing/accessory/waistcoat(src)
|
||||
new /obj/item/clothing/accessory/waistcoat(src)
|
||||
new /obj/item/clothing/head/soft/black(src)
|
||||
new /obj/item/clothing/head/soft/black(src)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
new /obj/item/reagent_containers/glass/rag(src)
|
||||
new /obj/item/reagent_containers/glass/rag(src)
|
||||
new /obj/item/storage/box/beanbag(src)
|
||||
new /obj/item/clothing/suit/armor/vest/alt(src)
|
||||
new /obj/item/circuitboard/machine/dish_drive(src)
|
||||
new /obj/item/clothing/glasses/sunglasses/reagent(src)
|
||||
new /obj/item/clothing/neck/petcollar(src)
|
||||
new /obj/item/storage/belt/bandolier(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/head/that = 2,
|
||||
/obj/item/radio/headset/headset_srv = 2,
|
||||
/obj/item/clothing/under/sl_suit = 2,
|
||||
/obj/item/clothing/under/rank/bartender = 2,
|
||||
/obj/item/clothing/accessory/waistcoat = 2,
|
||||
/obj/item/clothing/head/soft/black = 2,
|
||||
/obj/item/clothing/shoes/sneakers/black = 2,
|
||||
/obj/item/reagent_containers/glass/rag = 2,
|
||||
/obj/item/storage/box/beanbag = 1,
|
||||
/obj/item/clothing/suit/armor/vest/alt = 1,
|
||||
/obj/item/circuitboard/machine/dish_drive = 1,
|
||||
/obj/item/clothing/glasses/sunglasses/reagent = 1,
|
||||
/obj/item/clothing/neck/petcollar = 1,
|
||||
/obj/item/storage/belt/bandolier = 1)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/chefcloset
|
||||
name = "\proper chef's closet"
|
||||
@@ -37,23 +31,19 @@
|
||||
|
||||
/obj/structure/closet/chefcloset/PopulateContents()
|
||||
..()
|
||||
new /obj/item/clothing/under/waiter(src)
|
||||
new /obj/item/clothing/under/waiter(src)
|
||||
new /obj/item/radio/headset/headset_srv(src)
|
||||
new /obj/item/radio/headset/headset_srv(src)
|
||||
new /obj/item/clothing/accessory/waistcoat(src)
|
||||
new /obj/item/clothing/accessory/waistcoat(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/apron/chef(src)
|
||||
new /obj/item/clothing/head/soft/mime(src)
|
||||
new /obj/item/clothing/head/soft/mime(src)
|
||||
new /obj/item/storage/box/mousetraps(src)
|
||||
new /obj/item/storage/box/mousetraps(src)
|
||||
new /obj/item/circuitboard/machine/dish_drive(src)
|
||||
new /obj/item/clothing/suit/toggle/chef(src)
|
||||
new /obj/item/clothing/under/rank/chef(src)
|
||||
new /obj/item/clothing/head/chefhat(src)
|
||||
new /obj/item/reagent_containers/glass/rag(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/under/waiter = 2,
|
||||
/obj/item/radio/headset/headset_srv = 2,
|
||||
/obj/item/clothing/accessory/waistcoat = 2,
|
||||
/obj/item/clothing/suit/apron/chef = 3,
|
||||
/obj/item/clothing/head/soft/mime = 2,
|
||||
/obj/item/storage/box/mousetraps = 2,
|
||||
/obj/item/circuitboard/machine/dish_drive = 1,
|
||||
/obj/item/clothing/suit/toggle/chef = 1,
|
||||
/obj/item/clothing/under/rank/chef = 1,
|
||||
/obj/item/clothing/head/chefhat = 1,
|
||||
/obj/item/reagent_containers/glass/rag = 1)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/jcloset
|
||||
name = "custodial closet"
|
||||
@@ -124,57 +114,48 @@
|
||||
icon_door = "red"
|
||||
|
||||
/obj/structure/closet/wardrobe/red/PopulateContents()
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/security(src)
|
||||
new /obj/item/storage/backpack/security(src)
|
||||
new /obj/item/storage/backpack/satchel/sec(src)
|
||||
new /obj/item/storage/backpack/duffelbag/sec(src)
|
||||
new /obj/item/storage/backpack/duffelbag/sec(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/security(src)
|
||||
for(var/i in 1 to 2)
|
||||
new /obj/item/clothing/under/rank/security/skirt(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/jackboots(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/head/beret/sec(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/head/soft/sec(src)
|
||||
new /obj/item/clothing/mask/bandana/red(src)
|
||||
new /obj/item/clothing/mask/bandana/red(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/suit/hooded/wintercoat/security = 1,
|
||||
/obj/item/storage/backpack/security = 1,
|
||||
/obj/item/storage/backpack/satchel/sec = 1,
|
||||
/obj/item/storage/backpack/duffelbag/sec = 2,
|
||||
/obj/item/clothing/under/rank/security = 3,
|
||||
/obj/item/clothing/under/rank/security/skirt = 2,
|
||||
/obj/item/clothing/shoes/jackboots = 3,
|
||||
/obj/item/clothing/head/beret/sec = 3,
|
||||
/obj/item/clothing/head/soft/sec = 3,
|
||||
/obj/item/clothing/mask/bandana/red = 2)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
|
||||
/obj/structure/closet/wardrobe/cargotech
|
||||
name = "cargo wardrobe"
|
||||
icon_door = "orange"
|
||||
|
||||
/obj/structure/closet/wardrobe/cargotech/PopulateContents()
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/cargo(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/cargotech(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/gloves/fingerless(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/head/soft(src)
|
||||
new /obj/item/radio/headset/headset_cargo(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/suit/hooded/wintercoat/cargo = 1,
|
||||
/obj/item/clothing/under/rank/cargotech = 3,
|
||||
/obj/item/clothing/shoes/sneakers/black = 3,
|
||||
/obj/item/clothing/gloves/fingerless = 3,
|
||||
/obj/item/clothing/head/soft = 3,
|
||||
/obj/item/radio/headset/headset_cargo = 1)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/wardrobe/atmospherics_yellow
|
||||
name = "atmospherics wardrobe"
|
||||
icon_door = "atmos_wardrobe"
|
||||
|
||||
/obj/structure/closet/wardrobe/atmospherics_yellow/PopulateContents()
|
||||
new /obj/item/clothing/accessory/pocketprotector(src)
|
||||
new /obj/item/storage/backpack/duffelbag/engineering(src)
|
||||
new /obj/item/storage/backpack/satchel/eng(src)
|
||||
new /obj/item/storage/backpack/industrial(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/engineering/atmos(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/atmospheric_technician(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/accessory/pocketprotector = 1,
|
||||
/obj/item/storage/backpack/duffelbag/engineering = 1,
|
||||
/obj/item/storage/backpack/satchel/eng = 1,
|
||||
/obj/item/storage/backpack/industrial = 1,
|
||||
/obj/item/clothing/suit/hooded/wintercoat/engineering/atmos = 3,
|
||||
/obj/item/clothing/under/rank/atmospheric_technician = 3,
|
||||
/obj/item/clothing/shoes/sneakers/black = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
/obj/structure/closet/wardrobe/engineering_yellow
|
||||
@@ -182,45 +163,40 @@
|
||||
icon_door = "yellow"
|
||||
|
||||
/obj/structure/closet/wardrobe/engineering_yellow/PopulateContents()
|
||||
new /obj/item/clothing/accessory/pocketprotector(src)
|
||||
new /obj/item/storage/backpack/duffelbag/engineering(src)
|
||||
new /obj/item/storage/backpack/industrial(src)
|
||||
new /obj/item/storage/backpack/satchel/eng(src)
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/engineering(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/engineer(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/hazardvest(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/workboots(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/head/hardhat(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/accessory/pocketprotector = 1,
|
||||
/obj/item/storage/backpack/duffelbag/engineering = 1,
|
||||
/obj/item/storage/backpack/industrial = 1,
|
||||
/obj/item/storage/backpack/satchel/eng = 1,
|
||||
/obj/item/clothing/suit/hooded/wintercoat/engineering = 1,
|
||||
/obj/item/clothing/under/rank/engineer = 3,
|
||||
/obj/item/clothing/suit/hazardvest = 3,
|
||||
/obj/item/clothing/shoes/workboots = 3,
|
||||
/obj/item/clothing/head/hardhat = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
/obj/structure/closet/wardrobe/white/medical
|
||||
name = "medical doctor's wardrobe"
|
||||
|
||||
/obj/structure/closet/wardrobe/white/medical/PopulateContents()
|
||||
new /obj/item/clothing/accessory/pocketprotector(src)
|
||||
new /obj/item/storage/backpack/duffelbag/med(src)
|
||||
new /obj/item/storage/backpack/medic(src)
|
||||
new /obj/item/storage/backpack/satchel/med(src)
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/medical(src)
|
||||
new /obj/item/clothing/under/rank/nursesuit(src)
|
||||
new /obj/item/clothing/head/nursehat(src)
|
||||
new /obj/item/clothing/under/rank/medical/blue(src)
|
||||
new /obj/item/clothing/under/rank/medical/green(src)
|
||||
new /obj/item/clothing/under/rank/medical/purple(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/medical(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/toggle/labcoat(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/emt(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/head/soft/emt(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/accessory/pocketprotector = 1,
|
||||
/obj/item/storage/backpack/duffelbag/med = 1,
|
||||
/obj/item/storage/backpack/medic = 1,
|
||||
/obj/item/storage/backpack/satchel/med = 1,
|
||||
/obj/item/clothing/suit/hooded/wintercoat/medical = 1,
|
||||
/obj/item/clothing/under/rank/nursesuit = 1,
|
||||
/obj/item/clothing/head/nursehat = 1,
|
||||
/obj/item/clothing/under/rank/medical/blue = 1,
|
||||
/obj/item/clothing/under/rank/medical/green = 1,
|
||||
/obj/item/clothing/under/rank/medical/purple = 1,
|
||||
/obj/item/clothing/under/rank/medical = 3,
|
||||
/obj/item/clothing/suit/toggle/labcoat = 3,
|
||||
/obj/item/clothing/suit/toggle/labcoat/emt = 3,
|
||||
/obj/item/clothing/shoes/sneakers/white = 3,
|
||||
/obj/item/clothing/head/soft/emt = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
/obj/structure/closet/wardrobe/robotics_black
|
||||
@@ -228,18 +204,14 @@
|
||||
icon_door = "black"
|
||||
|
||||
/obj/structure/closet/wardrobe/robotics_black/PopulateContents()
|
||||
new /obj/item/clothing/glasses/hud/diagnostic(src)
|
||||
new /obj/item/clothing/glasses/hud/diagnostic(src)
|
||||
new /obj/item/clothing/under/rank/roboticist(src)
|
||||
new /obj/item/clothing/under/rank/roboticist(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat(src)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
new /obj/item/clothing/shoes/sneakers/black(src)
|
||||
new /obj/item/clothing/gloves/fingerless(src)
|
||||
new /obj/item/clothing/gloves/fingerless(src)
|
||||
new /obj/item/clothing/head/soft/black(src)
|
||||
new /obj/item/clothing/head/soft/black(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/glasses/hud/diagnostic = 2,
|
||||
/obj/item/clothing/under/rank/roboticist = 2,
|
||||
/obj/item/clothing/suit/toggle/labcoat = 2,
|
||||
/obj/item/clothing/shoes/sneakers/black = 2,
|
||||
/obj/item/clothing/gloves/fingerless = 2,
|
||||
/obj/item/clothing/head/soft/black = 2)
|
||||
generate_items_inside(items_inside,src)
|
||||
if(prob(40))
|
||||
new /obj/item/clothing/mask/bandana/skull(src)
|
||||
if(prob(40))
|
||||
@@ -252,18 +224,14 @@
|
||||
icon_door = "white"
|
||||
|
||||
/obj/structure/closet/wardrobe/chemistry_white/PopulateContents()
|
||||
new /obj/item/clothing/under/rank/chemist(src)
|
||||
new /obj/item/clothing/under/rank/chemist(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/chemist(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/chemist(src)
|
||||
new /obj/item/storage/backpack/chemistry(src)
|
||||
new /obj/item/storage/backpack/chemistry(src)
|
||||
new /obj/item/storage/backpack/satchel/chem(src)
|
||||
new /obj/item/storage/backpack/satchel/chem(src)
|
||||
new /obj/item/storage/bag/chemistry(src)
|
||||
new /obj/item/storage/bag/chemistry(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/under/rank/chemist = 2,
|
||||
/obj/item/clothing/shoes/sneakers/white = 2,
|
||||
/obj/item/clothing/suit/toggle/labcoat/chemist = 2,
|
||||
/obj/item/storage/backpack/chemistry = 2,
|
||||
/obj/item/storage/backpack/satchel/chem = 2,
|
||||
/obj/item/storage/bag/chemistry = 2)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
|
||||
@@ -272,16 +240,13 @@
|
||||
icon_door = "white"
|
||||
|
||||
/obj/structure/closet/wardrobe/genetics_white/PopulateContents()
|
||||
new /obj/item/clothing/under/rank/geneticist(src)
|
||||
new /obj/item/clothing/under/rank/geneticist(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/genetics(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/genetics(src)
|
||||
new /obj/item/storage/backpack/genetics(src)
|
||||
new /obj/item/storage/backpack/genetics(src)
|
||||
new /obj/item/storage/backpack/satchel/gen(src)
|
||||
new /obj/item/storage/backpack/satchel/gen(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/under/rank/geneticist = 2,
|
||||
/obj/item/clothing/shoes/sneakers/white = 2,
|
||||
/obj/item/clothing/suit/toggle/labcoat/genetics = 2,
|
||||
/obj/item/storage/backpack/genetics = 2,
|
||||
/obj/item/storage/backpack/satchel/gen = 2)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
|
||||
@@ -290,18 +255,14 @@
|
||||
icon_door = "white"
|
||||
|
||||
/obj/structure/closet/wardrobe/virology_white/PopulateContents()
|
||||
new /obj/item/clothing/under/rank/virologist(src)
|
||||
new /obj/item/clothing/under/rank/virologist(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/virologist(src)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/virologist(src)
|
||||
new /obj/item/clothing/mask/surgical(src)
|
||||
new /obj/item/clothing/mask/surgical(src)
|
||||
new /obj/item/storage/backpack/virology(src)
|
||||
new /obj/item/storage/backpack/virology(src)
|
||||
new /obj/item/storage/backpack/satchel/vir(src)
|
||||
new /obj/item/storage/backpack/satchel/vir(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/under/rank/virologist = 2,
|
||||
/obj/item/clothing/shoes/sneakers/white = 2,
|
||||
/obj/item/clothing/suit/toggle/labcoat/virologist = 2,
|
||||
/obj/item/clothing/mask/surgical = 2,
|
||||
/obj/item/storage/backpack/virology = 2,
|
||||
/obj/item/storage/backpack/satchel/vir = 2)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
/obj/structure/closet/wardrobe/science_white
|
||||
@@ -309,22 +270,17 @@
|
||||
icon_door = "white"
|
||||
|
||||
/obj/structure/closet/wardrobe/science_white/PopulateContents()
|
||||
new /obj/item/clothing/accessory/pocketprotector(src)
|
||||
new /obj/item/storage/backpack/science(src)
|
||||
new /obj/item/storage/backpack/science(src)
|
||||
new /obj/item/storage/backpack/satchel/tox(src)
|
||||
new /obj/item/storage/backpack/satchel/tox(src)
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/science(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/scientist(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/suit/toggle/labcoat/science(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/shoes/sneakers/white(src)
|
||||
new /obj/item/radio/headset/headset_sci(src)
|
||||
new /obj/item/radio/headset/headset_sci(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/mask/gas(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/accessory/pocketprotector = 1,
|
||||
/obj/item/storage/backpack/science = 2,
|
||||
/obj/item/storage/backpack/satchel/tox = 2,
|
||||
/obj/item/clothing/suit/hooded/wintercoat/science = 1,
|
||||
/obj/item/clothing/under/rank/scientist = 3,
|
||||
/obj/item/clothing/suit/toggle/labcoat/science = 3,
|
||||
/obj/item/clothing/shoes/sneakers/white = 3,
|
||||
/obj/item/radio/headset/headset_sci = 2,
|
||||
/obj/item/clothing/mask/gas = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
return
|
||||
|
||||
/obj/structure/closet/wardrobe/botanist
|
||||
@@ -332,20 +288,15 @@
|
||||
icon_door = "green"
|
||||
|
||||
/obj/structure/closet/wardrobe/botanist/PopulateContents()
|
||||
new /obj/item/storage/backpack/botany(src)
|
||||
new /obj/item/storage/backpack/botany(src)
|
||||
new /obj/item/storage/backpack/satchel/hyd(src)
|
||||
new /obj/item/storage/backpack/satchel/hyd(src)
|
||||
new /obj/item/clothing/suit/hooded/wintercoat/hydro(src)
|
||||
new /obj/item/clothing/suit/apron(src)
|
||||
new /obj/item/clothing/suit/apron(src)
|
||||
new /obj/item/clothing/suit/apron/overalls(src)
|
||||
new /obj/item/clothing/suit/apron/overalls(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/under/rank/hydroponics(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/clothing/mask/bandana(src)
|
||||
|
||||
var/static/items_inside = list(
|
||||
/obj/item/storage/backpack/botany = 2,
|
||||
/obj/item/storage/backpack/satchel/hyd = 2,
|
||||
/obj/item/clothing/suit/hooded/wintercoat/hydro = 1,
|
||||
/obj/item/clothing/suit/apron = 2,
|
||||
/obj/item/clothing/suit/apron/overalls = 2,
|
||||
/obj/item/clothing/under/rank/hydroponics = 3,
|
||||
/obj/item/clothing/mask/bandana = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/wardrobe/curator
|
||||
name = "treasure hunting wardrobe"
|
||||
|
||||
@@ -39,16 +39,13 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_electrical/PopulateContents()
|
||||
..()
|
||||
new /obj/item/clothing/gloves/color/yellow(src)
|
||||
new /obj/item/clothing/gloves/color/yellow(src)
|
||||
new /obj/item/inducer(src)
|
||||
new /obj/item/inducer(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/storage/toolbox/electrical(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/electronics/apc(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/multitool(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/clothing/gloves/color/yellow = 2,
|
||||
/obj/item/inducer = 2,
|
||||
/obj/item/storage/toolbox/electrical = 3,
|
||||
/obj/item/electronics/apc = 3,
|
||||
/obj/item/multitool = 3)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/secure_closet/engineering_welding
|
||||
name = "welding supplies locker"
|
||||
|
||||
@@ -6,20 +6,17 @@
|
||||
|
||||
/obj/structure/closet/secure_closet/medical1/PopulateContents()
|
||||
..()
|
||||
new /obj/item/reagent_containers/glass/beaker(src)
|
||||
new /obj/item/reagent_containers/glass/beaker(src)
|
||||
new /obj/item/reagent_containers/dropper(src)
|
||||
new /obj/item/reagent_containers/dropper(src)
|
||||
new /obj/item/storage/belt/medical(src)
|
||||
new /obj/item/storage/box/syringes(src)
|
||||
new /obj/item/reagent_containers/glass/bottle/toxin(src)
|
||||
new /obj/item/reagent_containers/glass/bottle/morphine(src)
|
||||
new /obj/item/reagent_containers/glass/bottle/morphine(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/reagent_containers/glass/bottle/epinephrine(src)
|
||||
for(var/i in 1 to 3)
|
||||
new /obj/item/reagent_containers/glass/bottle/charcoal(src)
|
||||
new /obj/item/storage/box/rxglasses(src)
|
||||
var/static/items_inside = list(
|
||||
/obj/item/reagent_containers/glass/beaker = 2,
|
||||
/obj/item/reagent_containers/dropper = 2,
|
||||
/obj/item/storage/belt/medical = 1,
|
||||
/obj/item/storage/box/syringes = 1,
|
||||
/obj/item/reagent_containers/glass/bottle/toxin = 1,
|
||||
/obj/item/reagent_containers/glass/bottle/morphine = 2,
|
||||
/obj/item/reagent_containers/glass/bottle/epinephrine= 3,
|
||||
/obj/item/reagent_containers/glass/bottle/charcoal = 3,
|
||||
/obj/item/storage/box/rxglasses = 1)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/structure/closet/secure_closet/medical2
|
||||
name = "anesthetic closet"
|
||||
@@ -98,4 +95,4 @@
|
||||
new /obj/item/storage/box/pillbottles(src)
|
||||
new /obj/item/storage/box/pillbottles(src)
|
||||
new /obj/item/storage/box/medsprays(src)
|
||||
new /obj/item/storage/box/medsprays(src)
|
||||
new /obj/item/storage/box/medsprays(src)
|
||||
|
||||
Reference in New Issue
Block a user