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
@@ -119,6 +119,7 @@
|
||||
loop.start()
|
||||
|
||||
/obj/item/device/geiger_counter/rad_act(amount)
|
||||
. = ..()
|
||||
if(amount <= RAD_BACKGROUND_RADIATION || !scanning)
|
||||
return
|
||||
current_tick_amount += amount
|
||||
|
||||
@@ -352,7 +352,9 @@
|
||||
|
||||
|
||||
/turf/open/rad_act(pulse_strength)
|
||||
. = ..()
|
||||
if (air.gases[/datum/gas/carbon_dioxide] && air.gases[/datum/gas/oxygen])
|
||||
pulse_strength = min(pulse_strength,air.gases[/datum/gas/carbon_dioxide][MOLES]*1000,air.gases[/datum/gas/oxygen][MOLES]*2000) //Ensures matter is conserved properly
|
||||
air.gases[/datum/gas/carbon_dioxide][MOLES]=max(air.gases[/datum/gas/carbon_dioxide][MOLES]-(pulse_strength/1000),0)
|
||||
air.gases[/datum/gas/oxygen][MOLES]=max(air.gases[/datum/gas/oxygen][MOLES]-(pulse_strength/2000),0)
|
||||
air.assert_gas(/datum/gas/pluoxium)
|
||||
|
||||
Reference in New Issue
Block a user