From 4189fc3ff67595b2cd196923fa577ef340d25e61 Mon Sep 17 00:00:00 2001 From: Atlantis Date: Sat, 29 Aug 2015 15:53:13 +0200 Subject: [PATCH] Adds defines for atmospherics tanks values --- code/__defines/atmos.dm | 7 +++++++ code/game/turfs/flooring/flooring_premade.dm | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/code/__defines/atmos.dm b/code/__defines/atmos.dm index ef41eb97f5..e93bf45085 100644 --- a/code/__defines/atmos.dm +++ b/code/__defines/atmos.dm @@ -86,3 +86,10 @@ //Flags for zone sleeping #define ZONE_ACTIVE 1 #define ZONE_SLEEPING 0 + +// Defines how much of certain gas do the Atmospherics tanks start with. Values are in kpa per tile (assuming 20C) +#define ATMOSTANK_NITROGEN 90000 // A lot of N2 is needed to produce air mix, that's why we keep 90MPa of it +#define ATMOSTANK_OXYGEN 40000 // O2 is also important for airmix, but not as much as N2 as it's only 21% of it. +#define ATMOSTANK_CO2 25000 // CO2 and PH are not critically important for station, only for toxins and alternative coolants, no need to store a lot of those. +#define ATMOSTANK_PHORON 25000 +#define ATMOSTANK_NITROUSOXIDE 10000 // N2O doesn't have a real useful use, i guess it's on station just to allow refilling of sec's riot control canisters? \ No newline at end of file diff --git a/code/game/turfs/flooring/flooring_premade.dm b/code/game/turfs/flooring/flooring_premade.dm index fd2a5fd3d2..7b0d833c63 100644 --- a/code/game/turfs/flooring/flooring_premade.dm +++ b/code/game/turfs/flooring/flooring_premade.dm @@ -55,21 +55,21 @@ /turf/simulated/floor/reinforced/nitrogen oxygen = 0 - nitrogen = 90000 + nitrogen = ATMOSTANK_NITROGEN /turf/simulated/floor/reinforced/oxygen - oxygen = 50000 + oxygen = ATMOSTANK_OXYGEN nitrogen = 0 /turf/simulated/floor/reinforced/phoron oxygen = 0 nitrogen = 0 - phoron = 25000 + phoron = ATMOSTANK_PHORON /turf/simulated/floor/reinforced/carbon_dioxide oxygen = 0 nitrogen = 0 - carbon_dioxide = 25000 + carbon_dioxide = ATMOSTANK_CO2 /turf/simulated/floor/reinforced/n20 oxygen = 0 @@ -79,7 +79,7 @@ ..() sleep(-1) if(!air) make_air() - air.adjust_gas("sleeping_agent", 10000) + air.adjust_gas("sleeping_agent", ATMOSTANK_NITROUSOXIDE) /turf/simulated/floor/cult name = "engraved floor"