Makes closets Initialize() (#15137)

This commit is contained in:
AffectedArc07
2020-12-20 08:25:29 -05:00
committed by GitHub
parent c92785fea7
commit f3d903acf3
36 changed files with 185 additions and 334 deletions
+3 -6
View File
@@ -162,8 +162,7 @@
desc = "Crate full of chemicals of unknown type and value from a 'trusted' source."
req_one_access = list(ACCESS_CHEMISTRY,ACCESS_RESEARCH,ACCESS_QM) // the qm knows a guy, you see.
/obj/structure/closet/crate/secure/unknownchemicals/New()
..()
/obj/structure/closet/crate/secure/unknownchemicals/populate_contents()
for(var/i in 1 to 7)
new/obj/item/reagent_containers/glass/bottle/random_base_chem(src)
for(var/i in 1 to 3)
@@ -180,8 +179,7 @@
desc = "Full of basic chemistry supplies."
req_one_access = list(ACCESS_CHEMISTRY,ACCESS_RESEARCH)
/obj/structure/closet/crate/secure/chemicals/New()
..()
/obj/structure/closet/crate/secure/chemicals/populate_contents()
for(var/chem in GLOB.standard_chemicals)
var/obj/item/reagent_containers/glass/bottle/B = new(src)
B.reagents.add_reagent(chem, B.volume)
@@ -241,8 +239,7 @@
icon_broken = "cabinetdetective_broken"
icon_off = "cabinetdetective_broken"
/obj/structure/closet/secure_closet/random_drinks/New()
..()
/obj/structure/closet/secure_closet/random_drinks/populate_contents()
for(var/i in 1 to 5)
new/obj/item/reagent_containers/food/drinks/bottle/random_drink(src)
while(prob(25))