Forces gases to obey certain laws of nature (#35277)
* - Fixes most gas reactions deleting more gas than exists and thus making gas out of nowhere. - Makes Noblium formation no longer multiplicative. - Expunges invocation of a byond bug by stimulum production. * - Redundant parenthesis - I'm going back to sleep * - Sends fire and fusion to jail * - Deletes redundant line in lung code - Adds garbage_collect and clamp to cryocells - Adds clamp to collectors * - Reverted the tritium burn changes because apparently I'm dumb * - FUCK * - Fixes division by zero when fusion has no impurities * - Adds extra commentary for the next unlucky sod - Compresses lines for performance or so they say - Adds ..() to rad_act on turfs * - Fuck it, fixes rad collectors, open turfs, geiger counters and living mobs not signalling rad_act components
This commit is contained in:
committed by
CitadelStationBot
parent
52ed449741
commit
9b910552fd
@@ -44,7 +44,7 @@
|
||||
playsound(src, 'sound/machines/ding.ogg', 50, 1)
|
||||
eject()
|
||||
else
|
||||
var/gasdrained = powerproduction_drain*drainratio
|
||||
var/gasdrained = min(powerproduction_drain*drainratio,loaded_tank.air_contents.gases[/datum/gas/plasma][MOLES])
|
||||
loaded_tank.air_contents.gases[/datum/gas/plasma][MOLES] -= gasdrained
|
||||
loaded_tank.air_contents.assert_gas(/datum/gas/tritium)
|
||||
loaded_tank.air_contents.gases[/datum/gas/tritium][MOLES] += gasdrained
|
||||
@@ -189,6 +189,7 @@
|
||||
update_icons()
|
||||
|
||||
/obj/machinery/power/rad_collector/rad_act(pulse_strength)
|
||||
. = ..()
|
||||
if(loaded_tank && active && pulse_strength > RAD_COLLECTOR_EFFICIENCY)
|
||||
last_power += (pulse_strength-RAD_COLLECTOR_EFFICIENCY)*RAD_COLLECTOR_COEFFICIENT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user