Refactors Heaters and Coolers (#15376)

* Refactors Heaters and Coolers

* Update tgui.bundle.js

* flail

* tweaks

* Update tgui.bundle.js

* Update tgui.bundle.js
This commit is contained in:
Fox McCloud
2021-01-28 21:18:24 +00:00
committed by GitHub
parent 003a1f7cba
commit 8a461a4e53
20 changed files with 396 additions and 616 deletions
+2 -16
View File
@@ -314,9 +314,8 @@ to destroy them and players will be able to make replacements.
/obj/item/stock_parts/capacitor = 6)
/obj/item/circuitboard/thermomachine
name = "circuit board (Freezer)"
desc = "Use screwdriver to switch between heating and cooling modes."
build_path = /obj/machinery/atmospherics/unary/cold_sink/freezer
name = "Thermomachine (Machine Board)"
build_path = /obj/machinery/atmospherics/unary/thermomachine
board_type = "machine"
origin_tech = "programming=3;plasmatech=3"
req_components = list(
@@ -325,19 +324,6 @@ to destroy them and players will be able to make replacements.
/obj/item/stack/cable_coil = 1,
/obj/item/stack/sheet/glass = 1)
/obj/item/circuitboard/thermomachine/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/screwdriver))
if(build_path == /obj/machinery/atmospherics/unary/cold_sink/freezer)
build_path = /obj/machinery/atmospherics/unary/heat_reservoir/heater
name = "circuit board (Heater)"
to_chat(user, "<span class='notice'>You set the board to heating.</span>")
else
build_path = /obj/machinery/atmospherics/unary/cold_sink/freezer
name = "circuit board (Freezer)"
to_chat(user, "<span class='notice'>You set the board to cooling.</span>")
return
return ..()
/obj/item/circuitboard/recharger
name = "circuit board (Recharger)"
build_path = /obj/machinery/recharger