mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Merge pull request #681 from Mloc/zas
Zoned Atmos System, merged properly from aryn's repo.
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
|
||||
if (src.health <= 10)
|
||||
var/atom/location = src.loc
|
||||
AirflowRepel(location,air_contents.return_pressure())
|
||||
location.assume_air(air_contents)
|
||||
|
||||
src.destroyed = 1
|
||||
@@ -128,6 +129,8 @@
|
||||
if(holding)
|
||||
environment.merge(removed)
|
||||
else
|
||||
if(istype(removed))
|
||||
AirflowRepel(loc,removed.return_pressure())
|
||||
loc.assume_air(removed)
|
||||
src.update_icon()
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
if(holding)
|
||||
environment.merge(removed)
|
||||
else
|
||||
if(istype(removed))
|
||||
AirflowRepel(loc,removed.return_pressure())
|
||||
loc.assume_air(removed)
|
||||
else
|
||||
var/pressure_delta = target_pressure - air_contents.return_pressure()
|
||||
@@ -58,7 +60,8 @@
|
||||
removed = environment.remove(transfer_moles)
|
||||
else
|
||||
removed = loc.remove_air(transfer_moles)
|
||||
|
||||
if(istype(removed))
|
||||
AirflowAttract(loc,removed.return_pressure())
|
||||
air_contents.merge(removed)
|
||||
//src.update_icon()
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
removed = environment.remove(transfer_moles)
|
||||
else
|
||||
removed = loc.remove_air(transfer_moles)
|
||||
if(istype(removed))
|
||||
AirflowAttract(loc,removed.return_pressure())
|
||||
|
||||
//Filter it
|
||||
if (removed)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
var/datum/gas_mixture/conn_air = zturf_conn.air //TODO: pop culture reference
|
||||
var/datum/gas_mixture/my_air = myturf.air
|
||||
if (istype(conn_air) && istype(my_air))
|
||||
if (!my_air.compare(conn_air))
|
||||
myturf.reset_delay()
|
||||
zturf_conn.reset_delay()
|
||||
//if (!my_air.compare(conn_air))
|
||||
// myturf.reset_delay()
|
||||
// zturf_conn.reset_delay()
|
||||
my_air.share(conn_air)
|
||||
|
||||
Reference in New Issue
Block a user