mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 19:06:29 +01:00
* heat pump * quck config clicks * I forgot * performance factor setting * Heat pump power rating increase * passive flow adjustment * heatpump attackby proc * zeropoint fix and UI adjustment * Gas cooler perf reduction * reduces perf to upstream values * Un perfing for both heater and cooler, back to the original values * adds the "massive" gas pump, WIP * Fixes a merge fuckup * indents and whitespace corrections * adds power supply * circuit for the massive gas pump * _vr merge clean up * comments on atmos helpers * massive gas pump and UI * UI clean up * oh and I probably should push the bundle as well.. * adds the circuit to rnd hopefully * adds massive heatpump and its circuits * adds the circuits to the map * indention fix for js * more indentions * EVEN MORE INDENTIONS * last indention? * ICONS! * Directional and different speeds for icons
19 lines
677 B
Plaintext
19 lines
677 B
Plaintext
/**
|
|
* This file contains a subtype of machinery/power, that is used by other machinery as an interior object
|
|
*/
|
|
/obj/machinery/power/powersupply
|
|
name = "power supply"
|
|
desc = "An interior component of another machine meant to supply it with power."
|
|
|
|
/obj/machinery/power/powersupply/connect_to_network()
|
|
var/turf/T = src.loc.loc//double loc, first loc is the machine we are in, second one gives us the turf of the machine we are in
|
|
if(!T || !istype(T))
|
|
return 0
|
|
|
|
var/obj/structure/cable/C = T.get_cable_node() //check if we have a node cable on the machine turf, the first found is picked
|
|
if(!C || !C.powernet)
|
|
return 0
|
|
|
|
C.powernet.add_machine(src)
|
|
return 1
|