Adds CO2 Breather Trait (#9810)

This commit is contained in:
Ectype
2025-01-07 09:15:39 -06:00
committed by GitHub
parent f014732116
commit 2e5cd9aa72
6 changed files with 78 additions and 0 deletions

View File

@@ -200,6 +200,39 @@
gauge_icon = "indicator_double" // Ensuring unique sprite stuff ig.
volume = 10
//CHOMPEdit Start - for CO2 breathers
/obj/item/tank/carbon_dioxide
name = "carbon dioxide tank"
desc = "A tank of carbon dioxide"
icon_state = "emergency_double"
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
/obj/item/tank/carbon_dioxide/Initialize()
. = ..()
src.air_contents.adjust_gas(GAS_CO2, (10*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C))
/obj/item/tank/emergency/carbon_dioxide
name = "emergency carbon dioxide tank"
desc = "An emergency tank of carbon dioxide"
icon_state = "emergency_tst"
slot_flags = SLOT_BELT
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
/obj/item/tank/emergency/carbon_dioxide/Initialize()
. = ..()
src.air_contents.adjust_gas(GAS_CO2, (10*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C))
/obj/item/tank/emergency/carbon_dioxide/double
name = "double emergency carbon dioxide tank"
desc = "An double tank of carbon dioxide"
icon_state = "emergency_double"
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
/obj/item/tank/emergency/carbon_dioxide/double/Initialize()
. = ..()
src.air_contents.adjust_gas(GAS_CO2, (10*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C))
//CHOMPEdit End
/*
* Nitrogen
*/

View File

@@ -95,3 +95,25 @@
icon_state = "oxygen_fr"
gauge_icon = "indicator_bigtank"
gauge_cap = 3
//CHOMPEdit Start - for CO2 breathers
/obj/item/tank/carbon_dioxide
icon = 'icons/obj/tank_vr.dmi'
icon_state = "oxygen_f"
gauge_icon = "indicator_bigtank"
gauge_cap = 3
/obj/item/tank/emergency/carbon_dioxide
icon = 'icons/obj/tank_vr.dmi'
icon_state = "emergency_tst"
gauge_icon = "indicator_smalltank"
volume = 6
gauge_cap = 3
/obj/item/tank/emergency/carbon_dioxide/double
icon = 'icons/obj/tank_vr.dmi'
icon_state = "emergency_double"
gauge_icon = "indicator_double"
volume = 12
gauge_cap = 3
//CHOMPEdit End