Skip to content

Commit

Permalink
Kel guided fixes to the radiator runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
izac112 committed Mar 8, 2024
1 parent f1a2ce8 commit 91cf671
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/ATMOSPHERICS/components/station_boiler_radiator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
var/thermal_energy_change = 4000 //How much energy we can process
var/obj/machinery/atmospherics/binary/stationboiler/assignedBoiler

/obj/machinery/stationboiler_radiator/New()
..()
assignedBoiler = pick(stationboilers)

/obj/machinery/stationboiler_radiator/process()
..()
if(!assignedBoiler)
if(!assignedBoiler && stationboilers)
assignedBoiler = pick(stationboilers)
if(!assignedBoiler || !assignedBoiler.is_active)
if(icon_state != "off")
Expand Down

0 comments on commit 91cf671

Please sign in to comment.