mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 03:21:30 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user