[MIRROR] Smartfridges only come preloaded at map start (#837)
* Smartfridges only come preloaded at map start * update CitadelStation-1.2.1.dmm
This commit is contained in:
committed by
Poojawa
parent
aedec34c54
commit
cb03dd5d0d
@@ -40086,7 +40086,7 @@
|
||||
},
|
||||
/area/medical/virology)
|
||||
"brX" = (
|
||||
/obj/machinery/smartfridge/chemistry/virology,
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded,
|
||||
/turf/open/floor/plasteel/whitegreen/side{
|
||||
tag = "icon-whitegreen (EAST)";
|
||||
icon_state = "whitegreen";
|
||||
@@ -47853,7 +47853,7 @@
|
||||
},
|
||||
/area/medical/chemistry)
|
||||
"bEN" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/open/floor/plating{
|
||||
baseturf = /turf/open/floor/plating/asteroid/airless
|
||||
},
|
||||
@@ -76429,7 +76429,7 @@
|
||||
},
|
||||
/area/toxins/xenobiology)
|
||||
"cCm" = (
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/obj/structure/cable/orange{
|
||||
d1 = 4;
|
||||
d2 = 8;
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
"aeG" = (/obj/structure/grille,/obj/structure/window/reinforced/fulltile,/obj/structure/cable/yellow{d2 = 4;icon_state = "0-4"},/turf/open/floor/plating,/area/medical/virology)
|
||||
"aeH" = (/obj/item/weapon/storage/box/beakers{pixel_x = 2;pixel_y = 2},/obj/item/weapon/storage/box/syringes,/obj/machinery/power/apc{cell_type = 5000;dir = 1;name = "Virology APC";pixel_x = 0;pixel_y = 24},/obj/structure/cable/yellow{d2 = 4;icon_state = "0-4"},/obj/structure/cable/yellow{d2 = 8;icon_state = "0-8"},/obj/structure/table/glass,/turf/open/floor/plasteel/whitegreen/side{dir = 9},/area/medical/virology)
|
||||
"aeI" = (/obj/item/weapon/book/manual/wiki/infections{pixel_y = 7},/obj/item/weapon/reagent_containers/syringe/antiviral,/obj/item/weapon/reagent_containers/dropper,/obj/item/weapon/reagent_containers/spray/cleaner,/obj/structure/cable/yellow{d1 = 2;d2 = 8;icon_state = "2-8"},/obj/structure/table/glass,/turf/open/floor/plasteel/whitegreen/side{dir = 5},/area/medical/virology)
|
||||
"aeJ" = (/obj/machinery/smartfridge/chemistry/virology,/obj/machinery/airalarm{frequency = 1439;pixel_y = 23},/turf/open/floor/plasteel/whitegreen,/area/medical/virology)
|
||||
"aeJ" = (/obj/machinery/smartfridge/chemistry/virology/preloaded,/obj/machinery/airalarm{frequency = 1439;pixel_y = 23},/turf/open/floor/plasteel/whitegreen,/area/medical/virology)
|
||||
"aeK" = (/obj/machinery/reagentgrinder{pixel_y = 8},/obj/structure/table/glass,/turf/open/floor/plasteel/whitegreen/side{dir = 9},/area/medical/virology)
|
||||
"aeL" = (/obj/item/clothing/gloves/color/latex,/obj/item/device/healthanalyzer,/obj/item/clothing/glasses/hud/health,/obj/structure/reagent_dispensers/virusfood{density = 0;pixel_x = 0;pixel_y = 30},/obj/structure/table/glass,/turf/open/floor/plasteel/whitegreen/side{dir = 5},/area/medical/virology)
|
||||
"aeM" = (/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden{dir = 6},/turf/open/floor/plasteel/red/side{dir = 8},/area/security/processing{name = "Prisoner Processing"})
|
||||
@@ -620,7 +620,7 @@
|
||||
"alV" = (/obj/machinery/camera{c_tag = "Custodial Closet"},/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"alW" = (/obj/machinery/monkey_recycler,/obj/machinery/firealarm{dir = 2;pixel_y = 24},/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"alX" = (/obj/machinery/processor{desc = "A machine used to process slimes and retrieve their extract.";name = "Slime Processor"},/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"alY" = (/obj/machinery/smartfridge/extract,/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"alY" = (/obj/machinery/smartfridge/extract/preloaded,/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"alZ" = (/obj/structure/table,/obj/machinery/reagentgrinder,/obj/machinery/airalarm{frequency = 1439;pixel_y = 23},/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"ama" = (/obj/structure/closet/l3closet/scientist,/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
"amb" = (/obj/structure/closet/l3closet/scientist,/obj/machinery/light_switch{pixel_x = 0;pixel_y = 28},/turf/open/floor/plasteel/white,/area/toxins/xenobiology)
|
||||
@@ -2985,7 +2985,7 @@
|
||||
"bfu" = (/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden,/obj/structure/cable{tag = "icon-1-2";icon_state = "1-2"},/turf/open/floor/plasteel/whiteblue/corner{tag = "icon-whitebluecorner (EAST)";icon_state = "whitebluecorner";dir = 4},/area/medical/medbay{name = "Medbay Central"})
|
||||
"bfv" = (/obj/machinery/chem_dispenser,/obj/item/weapon/reagent_containers/glass/beaker/large,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTHWEST)";icon_state = "whiteyellow";dir = 9},/area/medical/chemistry)
|
||||
"bfw" = (/obj/machinery/chem_master,/obj/item/weapon/book/manual/wiki/chemistry,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
"bfx" = (/obj/machinery/smartfridge/chemistry{name = "chemical component fridge";spawn_meds = null},/obj/machinery/camera/autoname,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
"bfx" = (/obj/machinery/smartfridge/chemistry/preloaded{name = "chemical component fridge"},/obj/machinery/camera/autoname,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
"bfy" = (/obj/structure/table,/obj/machinery/vending/wallmed{pixel_y = 28},/obj/item/weapon/hand_labeler,/obj/item/clothing/glasses/science,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
"bfz" = (/obj/structure/table,/obj/machinery/reagentgrinder,/obj/item/stack/sheet/mineral/plasma{layer = 2.9;pixel_y = 4},/obj/item/stack/sheet/mineral/plasma,/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
"bfA" = (/obj/structure/sink{pixel_y = 24},/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (NORTH)";icon_state = "whiteyellow";dir = 1},/area/medical/chemistry)
|
||||
@@ -3094,7 +3094,7 @@
|
||||
"bhz" = (/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (WEST)";icon_state = "whiteyellow";dir = 8},/area/medical/chemistry)
|
||||
"bhA" = (/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden,/turf/open/floor/plasteel/white,/area/medical/chemistry)
|
||||
"bhB" = (/obj/structure/closet/secure_closet/chemical,/turf/open/floor/plasteel/white,/area/medical/chemistry)
|
||||
"bhC" = (/obj/machinery/smartfridge/chemistry{name = "chemical component fridge";spawn_meds = null},/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (EAST)";icon_state = "whiteyellow";dir = 4},/area/medical/chemistry)
|
||||
"bhC" = (/obj/machinery/smartfridge/chemistry/preloaded{name = "chemical component fridge"},/turf/open/floor/plasteel/whiteyellow/side{tag = "icon-whiteyellow (EAST)";icon_state = "whiteyellow";dir = 4},/area/medical/chemistry)
|
||||
"bhD" = (/turf/closed/wall/r_wall,/area/security/checkpoint)
|
||||
"bhE" = (/obj/machinery/atmospherics/components/unary/vent_pump{name = "regular air vent";on = 1},/obj/machinery/computer/secure_data,/turf/open/floor/plasteel{icon_state = "redfull"},/area/security/checkpoint)
|
||||
"bhF" = (/obj/structure/chair/office/dark{dir = 8},/obj/machinery/firealarm{dir = 1;pixel_x = 0;pixel_y = -26},/turf/open/floor/plasteel{icon_state = "redfull"},/area/security/checkpoint)
|
||||
@@ -3205,7 +3205,7 @@
|
||||
"bjG" = (/obj/machinery/light{icon_state = "tube1";dir = 8},/turf/open/floor/plasteel/whiteblue/side{tag = "icon-whiteblue (WEST)";icon_state = "whiteblue";dir = 8},/area/medical/medbay{name = "Medbay Central"})
|
||||
"bjH" = (/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden,/obj/structure/disposalpipe/segment,/turf/open/floor/plasteel/whiteblue/corner,/area/medical/medbay{name = "Medbay Central"})
|
||||
"bjI" = (/obj/structure/grille,/obj/structure/window/reinforced/fulltile,/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden,/obj/machinery/door/firedoor,/turf/open/floor/plating,/area/medical/chemistry)
|
||||
"bjJ" = (/obj/machinery/smartfridge/chemistry,/turf/closed/wall,/area/medical/chemistry)
|
||||
"bjJ" = (/obj/machinery/smartfridge/chemistry/preloaded,/turf/closed/wall,/area/medical/chemistry)
|
||||
"bjK" = (/obj/structure/table/reinforced,/obj/machinery/door/window/southleft{dir = 1;name = "Chemistry Desk";req_access_txt = "33"},/obj/machinery/door/firedoor/border_only,/turf/open/floor/plasteel/orange,/area/medical/chemistry)
|
||||
"bjL" = (/obj/structure/disposalpipe/segment,/turf/closed/wall,/area/medical/chemistry)
|
||||
"bjM" = (/obj/machinery/door/airlock/glass_command{name = "Bridge Access";req_access_txt = "0";req_one_access_txt = "19; 1"},/turf/open/floor/plasteel/darkblue,/area/bridge)
|
||||
|
||||
@@ -79542,7 +79542,7 @@
|
||||
})
|
||||
"cUh" = (
|
||||
/obj/structure/disposalpipe/segment,
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/closed/wall,
|
||||
/area/medical/medbay{
|
||||
name = "Medbay Central"
|
||||
@@ -81189,7 +81189,7 @@
|
||||
/turf/open/floor/plating,
|
||||
/area/toxins/xenobiology)
|
||||
"cXc" = (
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/obj/machinery/light_switch{
|
||||
pixel_x = -26
|
||||
},
|
||||
@@ -84274,7 +84274,7 @@
|
||||
/turf/open/floor/plasteel/whiteyellow/corner,
|
||||
/area/medical/chemistry)
|
||||
"ddg" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/closed/wall,
|
||||
/area/medical/chemistry)
|
||||
"ddh" = (
|
||||
@@ -104905,7 +104905,7 @@
|
||||
/obj/structure/cable/white{
|
||||
icon_state = "4-8"
|
||||
},
|
||||
/obj/machinery/smartfridge/chemistry/virology,
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded,
|
||||
/obj/effect/turf_decal/stripes/line{
|
||||
dir = 4
|
||||
},
|
||||
|
||||
@@ -63162,7 +63162,7 @@
|
||||
/turf/open/floor/plating,
|
||||
/area/medical/chemistry)
|
||||
"cfY" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/closed/wall,
|
||||
/area/medical/chemistry)
|
||||
"cfZ" = (
|
||||
@@ -77230,7 +77230,7 @@
|
||||
},
|
||||
/area/medical/virology)
|
||||
"cDH" = (
|
||||
/obj/machinery/smartfridge/chemistry/virology,
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded,
|
||||
/obj/machinery/airalarm{
|
||||
frequency = 1439;
|
||||
pixel_y = 23
|
||||
@@ -91079,7 +91079,7 @@
|
||||
d2 = 8;
|
||||
icon_state = "2-8"
|
||||
},
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/obj/structure/cable/yellow{
|
||||
d1 = 4;
|
||||
d2 = 8;
|
||||
|
||||
@@ -27034,7 +27034,7 @@
|
||||
/turf/open/floor/plating,
|
||||
/area/medical/chemistry)
|
||||
"aRh" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/closed/wall,
|
||||
/area/medical/chemistry)
|
||||
"aRi" = (
|
||||
@@ -37371,7 +37371,7 @@
|
||||
/turf/open/floor/plasteel,
|
||||
/area/toxins/xenobiology)
|
||||
"bjb" = (
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/obj/machinery/light{
|
||||
dir = 1
|
||||
},
|
||||
|
||||
@@ -30296,7 +30296,7 @@
|
||||
},
|
||||
/area/medical/chemistry)
|
||||
"bjk" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/closed/wall,
|
||||
/area/medical/chemistry)
|
||||
"bjl" = (
|
||||
@@ -30534,7 +30534,7 @@
|
||||
/turf/open/floor/plasteel/white,
|
||||
/area/toxins/xenobiology)
|
||||
"bjH" = (
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/turf/open/floor/plasteel/whitepurple/side{
|
||||
dir = 4
|
||||
},
|
||||
@@ -40057,9 +40057,8 @@
|
||||
/turf/open/floor/plasteel/white,
|
||||
/area/medical/virology)
|
||||
"bBf" = (
|
||||
/obj/machinery/smartfridge/chemistry/virology,
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded,
|
||||
/turf/open/floor/plasteel/whitegreen/side{
|
||||
tag = "icon-whitegreen (EAST)";
|
||||
icon_state = "whitegreen";
|
||||
dir = 4
|
||||
},
|
||||
@@ -50530,7 +50529,7 @@
|
||||
/turf/open/floor/plasteel/white,
|
||||
/area/medical/genetics)
|
||||
"bXR" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/open/floor/plasteel/black,
|
||||
/area/medical/chemistry)
|
||||
"bXS" = (
|
||||
|
||||
@@ -27089,7 +27089,7 @@
|
||||
/turf/open/floor/plasteel,
|
||||
/area/assembly/chargebay)
|
||||
"bjQ" = (
|
||||
/obj/machinery/smartfridge/chemistry,
|
||||
/obj/machinery/smartfridge/chemistry/preloaded,
|
||||
/turf/open/floor/plating,
|
||||
/area/medical/chemistry)
|
||||
"bjR" = (
|
||||
@@ -40907,7 +40907,7 @@
|
||||
/turf/open/floor/plasteel/white,
|
||||
/area/toxins/xenobiology)
|
||||
"bMo" = (
|
||||
/obj/machinery/smartfridge/extract,
|
||||
/obj/machinery/smartfridge/extract/preloaded,
|
||||
/turf/open/floor/plasteel/white,
|
||||
/area/toxins/xenobiology)
|
||||
"bMp" = (
|
||||
@@ -44806,7 +44806,7 @@
|
||||
/turf/open/floor/plating,
|
||||
/area/maintenance/asmaint)
|
||||
"bVa" = (
|
||||
/obj/machinery/smartfridge/chemistry/virology,
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded,
|
||||
/turf/open/floor/plasteel/whitegreen/side{
|
||||
dir = 8
|
||||
},
|
||||
|
||||
@@ -15,12 +15,21 @@
|
||||
var/max_n_of_items = 1500
|
||||
var/icon_on = "smartfridge"
|
||||
var/icon_off = "smartfridge-off"
|
||||
var/list/initial_contents
|
||||
|
||||
/obj/machinery/smartfridge/Initialize()
|
||||
..()
|
||||
create_reagents()
|
||||
reagents.set_reacting(FALSE)
|
||||
|
||||
if(islist(initial_contents))
|
||||
for(var/typekey in initial_contents)
|
||||
var/amount = initial_contents[typekey]
|
||||
if(isnull(amount))
|
||||
amount = 1
|
||||
for(var/i in 1 to amount)
|
||||
load(new typekey(src))
|
||||
|
||||
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/smartfridge(null)
|
||||
B.apply_default_parts(src)
|
||||
|
||||
@@ -51,7 +60,7 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/circuitboard/machine/smartfridge/examine/(mob/user)
|
||||
/obj/item/weapon/circuitboard/machine/smartfridge/examine(mob/user)
|
||||
..()
|
||||
to_chat(user, "<span class='info'>[src] is set to [fridges[build_path]]. You can use a screwdriver to reconfigure it.</span>")
|
||||
|
||||
@@ -384,12 +393,8 @@
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/smartfridge/extract/New()
|
||||
..()
|
||||
var/obj/item/device/slime_scanner/I = new /obj/item/device/slime_scanner(src)
|
||||
load(I)
|
||||
var/obj/item/device/slime_scanner/T = new /obj/item/device/slime_scanner(src)
|
||||
load(T)
|
||||
/obj/machinery/smartfridge/extract/preloaded
|
||||
initial_contents = list(/obj/item/device/slime_scanner = 2)
|
||||
|
||||
// -----------------------------
|
||||
// Chemistry Medical Smartfridge
|
||||
@@ -397,21 +402,6 @@
|
||||
/obj/machinery/smartfridge/chemistry
|
||||
name = "smart chemical storage"
|
||||
desc = "A refrigerated storage unit for medicine storage."
|
||||
var/list/spawn_meds = list(
|
||||
/obj/item/weapon/reagent_containers/pill/epinephrine = 12,
|
||||
/obj/item/weapon/reagent_containers/pill/charcoal = 5,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/epinephrine = 1,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/charcoal = 1)
|
||||
|
||||
/obj/machinery/smartfridge/chemistry/New()
|
||||
..()
|
||||
for(var/typekey in spawn_meds)
|
||||
var/amount = spawn_meds[typekey]
|
||||
if(isnull(amount)) amount = 1
|
||||
while(amount)
|
||||
var/obj/item/I = new typekey(src)
|
||||
load(I)
|
||||
amount--
|
||||
|
||||
/obj/machinery/smartfridge/chemistry/accept_check(obj/item/O)
|
||||
if(istype(O,/obj/item/weapon/storage/pill_bottle))
|
||||
@@ -431,13 +421,22 @@
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/smartfridge/chemistry/preloaded
|
||||
initial_contents = list(
|
||||
/obj/item/weapon/reagent_containers/pill/epinephrine = 12,
|
||||
/obj/item/weapon/reagent_containers/pill/charcoal = 5,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/epinephrine = 1,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/charcoal = 1)
|
||||
|
||||
// ----------------------------
|
||||
// Virology Medical Smartfridge
|
||||
// ----------------------------
|
||||
/obj/machinery/smartfridge/chemistry/virology
|
||||
name = "smart virus storage"
|
||||
desc = "A refrigerated storage unit for volatile sample storage."
|
||||
spawn_meds = list(
|
||||
|
||||
/obj/machinery/smartfridge/chemistry/virology/preloaded
|
||||
initial_contents = list(
|
||||
/obj/item/weapon/reagent_containers/syringe/antiviral = 4,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/cold = 1,
|
||||
/obj/item/weapon/reagent_containers/glass/bottle/flu_virion = 1,
|
||||
|
||||
Reference in New Issue
Block a user