From 20f3a4b328a4bd9b2348f3d82e4c692d09305048 Mon Sep 17 00:00:00 2001 From: izac112 Date: Mon, 2 Dec 2019 23:28:40 +0100 Subject: [PATCH 1/2] Proof of concept thermal regulator for the airlocks --- code/game/machinery/airconditioner_yw.dm | 38 ++++++++++++++++++++++++ vorestation.dme | 1 + 2 files changed, 39 insertions(+) create mode 100644 code/game/machinery/airconditioner_yw.dm diff --git a/code/game/machinery/airconditioner_yw.dm b/code/game/machinery/airconditioner_yw.dm new file mode 100644 index 0000000000..15395cfa1b --- /dev/null +++ b/code/game/machinery/airconditioner_yw.dm @@ -0,0 +1,38 @@ +/obj/machinery/power/thermoregulator/cryogaia + name = "Custom Thermal Regulator" + desc = "A massive custom made Thermal regulator or CTR for short, intended to keep heat loss when going in our outside to a minimum, they are hardwired to tweentie celsius" + icon = 'icons/obj/machines/thermoregulator_vr.dmi' + icon_state = "lasergen" + density = 1 + anchored = 0 + + use_power = 0 //is powered directly from cables + active_power_usage = 100 KILOWATTS //Medium Power + idle_power_usage = 250 + + circuit = null + /* + null so people can not deconstruct them and remake them to normal Regulators, + probably should just make a circuit for it but this is pretty much just a proof of concept at the moment. + */ + +/obj/machinery/power/thermoregulator/cryogaia/attackby(obj/item/I, mob/user) + if(I.is_screwdriver()) + if(default_deconstruction_screwdriver(user,I)) + return + if(I.is_crowbar()) + if(default_deconstruction_crowbar(user,I)) + return + if(I.is_wrench()) + anchored = !anchored + visible_message("\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].") + playsound(src, I.usesound, 75, 1) + if(anchored) + connect_to_network() + else + disconnect_from_network() + turn_off() + return + if(istype(I, /obj/item/device/multitool)) + return + ..() \ No newline at end of file diff --git a/vorestation.dme b/vorestation.dme index c2f05f6e14..0f64c39a8f 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -720,6 +720,7 @@ #include "code\game\machinery\adv_med_vr.dm" #include "code\game\machinery\ai_slipper.dm" #include "code\game\machinery\airconditioner_vr.dm" +#include "code\game\machinery\airconditioner_yw.dm" #include "code\game\machinery\alarm.dm" #include "code\game\machinery\atmo_control.dm" #include "code\game\machinery\autolathe.dm" From 8e05979b7e25f007c4440d486690c03c1e39b0b8 Mon Sep 17 00:00:00 2001 From: izac112 Date: Tue, 3 Dec 2019 00:37:52 +0100 Subject: [PATCH 2/2] density to 0 --- code/game/machinery/airconditioner_yw.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/airconditioner_yw.dm b/code/game/machinery/airconditioner_yw.dm index 15395cfa1b..faa3e4693f 100644 --- a/code/game/machinery/airconditioner_yw.dm +++ b/code/game/machinery/airconditioner_yw.dm @@ -3,7 +3,7 @@ desc = "A massive custom made Thermal regulator or CTR for short, intended to keep heat loss when going in our outside to a minimum, they are hardwired to tweentie celsius" icon = 'icons/obj/machines/thermoregulator_vr.dmi' icon_state = "lasergen" - density = 1 + density = 0 anchored = 0 use_power = 0 //is powered directly from cables