Files
CHOMPStation2/code/game/machinery/airconditioner_yw.dm
2024-12-09 22:51:05 +01:00

39 lines
1.3 KiB
Plaintext

/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 twenty celsius"
icon = 'icons/obj/machines/wallthermal.dmi'
icon_state = "lasergen"
density = 0
anchored = 1
//Consider making this powered by the room at some point.
use_power = 0 //is powered directly from cables
active_power_usage = 25 KILOWATTS //Low 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(span_notice("\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].")) //Does this not need to be disabled?
playsound(src, I.usesound, 75, 1)
if(anchored)
connect_to_network()
else
disconnect_from_network()
turn_off()
return
if(istype(I, /obj/item/multitool))
return
..()