mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Constructability.
This commit is contained in:
@@ -14,15 +14,27 @@
|
|||||||
active_power_usage = 150 KILOWATTS //BIG POWER
|
active_power_usage = 150 KILOWATTS //BIG POWER
|
||||||
idle_power_usage = 500
|
idle_power_usage = 500
|
||||||
|
|
||||||
|
circuit = /obj/item/weapon/circuitboard/thermoregulator
|
||||||
|
|
||||||
var/on = 0
|
var/on = 0
|
||||||
var/target_temp = T20C
|
var/target_temp = T20C
|
||||||
var/mode = MODE_IDLE
|
var/mode = MODE_IDLE
|
||||||
|
|
||||||
|
/obj/machinery/power/thermoregulator/New()
|
||||||
|
..()
|
||||||
|
default_apply_parts()
|
||||||
|
|
||||||
/obj/machinery/power/thermoregulator/examine(mob/user)
|
/obj/machinery/power/thermoregulator/examine(mob/user)
|
||||||
if(..(user,2))
|
if(..(user,2))
|
||||||
to_chat(user, "There is a small display that reads \"[convert_k2c(target_temp)]C\".")
|
to_chat(user, "There is a small display that reads \"[convert_k2c(target_temp)]C\".")
|
||||||
|
|
||||||
/obj/machinery/power/thermoregulator/attackby(obj/item/I, mob/user)
|
/obj/machinery/power/thermoregulator/attackby(obj/item/I, mob/user)
|
||||||
|
if(isscrewdriver(I))
|
||||||
|
if(default_deconstruction_screwdriver(user,I))
|
||||||
|
return
|
||||||
|
if(iscrowbar(I))
|
||||||
|
if(default_deconstruction_crowbar(user,I))
|
||||||
|
return
|
||||||
if(iswrench(I))
|
if(iswrench(I))
|
||||||
anchored = !anchored
|
anchored = !anchored
|
||||||
visible_message("<span class='notice'>\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].</span>")
|
visible_message("<span class='notice'>\The [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].</span>")
|
||||||
|
|||||||
@@ -26,3 +26,13 @@
|
|||||||
/obj/item/weapon/stock_parts/manipulator = 1,
|
/obj/item/weapon/stock_parts/manipulator = 1,
|
||||||
/obj/item/weapon/stock_parts/capacitor = 1,
|
/obj/item/weapon/stock_parts/capacitor = 1,
|
||||||
/obj/item/weapon/stock_parts/console_screen = 1)
|
/obj/item/weapon/stock_parts/console_screen = 1)
|
||||||
|
|
||||||
|
// Board for the thermal regulator in airconditioner_vr.dm
|
||||||
|
/obj/item/weapon/circuitboard/thermoregulator
|
||||||
|
name = T_BOARD("thermal regulator")
|
||||||
|
build_path = /obj/machinery/power/thermoregulator
|
||||||
|
board_type = new /datum/frame/frame_types/machine
|
||||||
|
origin_tech = list(TECH_ENGINEERING = 4, TECH_POWER = 3)
|
||||||
|
req_components = list(
|
||||||
|
/obj/item/stack/cable_coil = 20,
|
||||||
|
/obj/item/weapon/stock_parts/capacitor/super = 3)
|
||||||
@@ -166,3 +166,10 @@
|
|||||||
req_tech = list(TECH_ENGINEERING = 3, TECH_BIO = 2)
|
req_tech = list(TECH_ENGINEERING = 3, TECH_BIO = 2)
|
||||||
build_path = /obj/item/weapon/circuitboard/algae_farm
|
build_path = /obj/item/weapon/circuitboard/algae_farm
|
||||||
sort_string = "HABAE"
|
sort_string = "HABAE"
|
||||||
|
|
||||||
|
/datum/design/circuit/thermoregulator
|
||||||
|
name = "thermal regulator"
|
||||||
|
id = "thermoregulator"
|
||||||
|
req_tech = list(TECH_ENGINEERING = 4, TECH_POWER = 3)
|
||||||
|
build_path = /obj/item/weapon/circuitboard/thermoregulator
|
||||||
|
sort_string = "HABAF"
|
||||||
Reference in New Issue
Block a user