]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
vox oxygen toxicity, respiration changes (#26705)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Sat, 27 Apr 2024 10:33:35 +0000 (12:33 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 10:33:35 +0000 (20:33 +1000)
* vox oxygen toxicity and related stuff

* Review

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Shared/Preferences/Loadouts/Effects/SpeciesLoadoutEffect.cs [new file with mode: 0644]
Resources/Prototypes/Reagents/botany.yml
Resources/Prototypes/Reagents/gases.yml

diff --git a/Content.Shared/Preferences/Loadouts/Effects/SpeciesLoadoutEffect.cs b/Content.Shared/Preferences/Loadouts/Effects/SpeciesLoadoutEffect.cs
new file mode 100644 (file)
index 0000000..74673cb
--- /dev/null
@@ -0,0 +1,6 @@
+namespace Content.Shared.Preferences.Loadouts.Effects;
+
+public sealed class SpeciesLoadoutEffect
+{
+    
+}
index 4cb7d0c184283717cabba9dfcb424f2b085fb5d5..cdd19dc308d4a2696c944ea075a4d6c46a21a774 100644 (file)
         - !type:OrganType
           type: Rat
           shouldHave: false
+        - !type:OrganType
+           type: Vox
+           shouldHave: false
         - !type:ReagentThreshold
           reagent: Ammonia
           min: 0.8
             Burn: -5
           types:
             Bloodloss: -5
+      - !type:Oxygenate # ammonia displaces nitrogen in vox blood
+        conditions:
+        - !type:OrganType
+          type: Vox
+        factor: -4
 
 
 - type: reagent
index 9cb73fffb85881e4460cbe4f5c4a07302292013b..06fb2b269b6ecfee1fafb9d8cf382b635929158a 100644 (file)
         ratios:
           CarbonDioxide: 1.0
           Oxygen: -1.0
+      - !type:HealthChange
+        conditions:
+        - !type:OrganType
+          type: Vox
+        scaleByQuantity: true
+        ignoreResistances: true
+        damage:
+          types:
+            Poison:
+              7
+      - !type:AdjustAlert
+        alertType: Toxins
+        conditions:
+          - !type:ReagentThreshold
+            min: 0.5
+          - !type:OrganType
+            type: Vox
+        clear: true
+        time: 5
 
 - type: reagent
   id: Plasma
         - !type:OrganType
           type: Plant
           shouldHave: false
+        - !type:OrganType
+          type: Vox
+          shouldHave: false
         # Don't want people to get toxin damage from the gas they just
         # exhaled, right?
         - !type:ReagentThreshold
         - !type:OrganType
           type: Vox
         ratios:
-          CarbonDioxide: 1.0
+          Ammonia: 1.0
           Nitrogen: -1.0
       - !type:ModifyLungGas
         conditions: