mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
Merge pull request #13885 from raspy-on-osu/spaceheater-buff
Makes space heaters worth using
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
var/mode = HEATER_MODE_STANDBY
|
||||
var/setMode = "auto" // Anything other than "heat" or "cool" is considered auto.
|
||||
var/targetTemperature = T20C
|
||||
var/heatingPower = 40000
|
||||
var/heatingPower = 10000
|
||||
var/efficiency = 20000
|
||||
var/temperatureTolerance = 1
|
||||
var/settableTemperatureMedian = 30 + T0C
|
||||
@@ -74,6 +74,19 @@
|
||||
|
||||
if(cell && cell.charge > 0)
|
||||
var/turf/L = loc
|
||||
PerformHeating(L)
|
||||
|
||||
for(var/direction in GLOB.alldirs)
|
||||
L=get_step(src,direction)
|
||||
if(!locate(/turf/closed) in L) // we don't want to heat walls and cause jank
|
||||
PerformHeating(L)
|
||||
|
||||
else
|
||||
on = FALSE
|
||||
update_icon()
|
||||
return PROCESS_KILL
|
||||
|
||||
/obj/machinery/space_heater/proc/PerformHeating(turf/L)
|
||||
if(!istype(L))
|
||||
if(mode != HEATER_MODE_STANDBY)
|
||||
mode = HEATER_MODE_STANDBY
|
||||
@@ -109,10 +122,6 @@
|
||||
env.set_temperature(env.return_temperature() + deltaTemperature)
|
||||
air_update_turf()
|
||||
cell.use(requiredPower / efficiency)
|
||||
else
|
||||
on = FALSE
|
||||
update_icon()
|
||||
return PROCESS_KILL
|
||||
|
||||
/obj/machinery/space_heater/RefreshParts()
|
||||
var/laser = 2
|
||||
@@ -122,7 +131,7 @@
|
||||
for(var/obj/item/stock_parts/capacitor/M in component_parts)
|
||||
cap += M.rating
|
||||
|
||||
heatingPower = laser * 40000
|
||||
heatingPower = laser * 10000
|
||||
|
||||
settableTemperatureRange = cap * 30
|
||||
efficiency = (cap + 1) * 10000
|
||||
|
||||
Reference in New Issue
Block a user