Replaces turf gas vars and fixes exoplanet atmosphere generation. (#16323)

* initial_gas

* tries to fix unit tests

* another attempt at fixing active edge test

* bracket fix

* gets rid of some of the hellish mapped in variables

* more runtime fixes

* away site runtimes

* aurora runtime fixes
This commit is contained in:
RustingWithYou
2023-05-21 11:18:33 +12:00
committed by GitHub
parent 3bfeaa49ce
commit 726b4605aa
26 changed files with 365 additions and 726 deletions

View File

@@ -426,14 +426,15 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
return edge
/datum/controller/subsystem/air/proc/has_same_air(turf/A, turf/B)
if(A.oxygen != B.oxygen)
if(A.initial_gas && !B.initial_gas)
return 0
if(A.nitrogen != B.nitrogen)
return 0
if(A.phoron != B.phoron)
return 0
if(A.carbon_dioxide != B.carbon_dioxide)
if(B.initial_gas && !A.initial_gas)
return 0
for(var/g in A.initial_gas)
if(!(g in B.initial_gas))
return 0
if(A.initial_gas[g] != B.initial_gas[g])
return 0
if(A.temperature != B.temperature)
return 0
return 1