From 62034e7b9bbcdc384470f929cc4a9c5eba7f1698 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Tue, 21 Jun 2022 12:32:31 -0400 Subject: [PATCH] Slimes breathe nitrogen (#9001) * Slimes breathe nitrogen * max respiration --- .../Prototypes/Body/Mechanisms/slime.yml | 23 +++++++++++++++++++ Resources/Prototypes/Body/Parts/slime.yml | 1 + .../Entities/Mobs/Species/slime.yml | 8 +++++++ Resources/Prototypes/Reagents/gases.yml | 4 ++++ 4 files changed, 36 insertions(+) diff --git a/Resources/Prototypes/Body/Mechanisms/slime.yml b/Resources/Prototypes/Body/Mechanisms/slime.yml index 9e744775c1..a547dd357c 100644 --- a/Resources/Prototypes/Body/Mechanisms/slime.yml +++ b/Resources/Prototypes/Body/Mechanisms/slime.yml @@ -25,3 +25,26 @@ - id: Medicine - id: Poison - id: Narcotic + +- type: entity + id: OrganSlimeLungs + parent: BaseHumanOrgan + name: slime gas sacs + description: "Collects nitrogen, which slime cells use for maintenance." + components: + - type: Sprite + layers: + - state: lung-l + - state: lung-r + - type: Mechanism + size: 1 + compatibility: Biological + - type: Lung + - type: Metabolizer + removeEmpty: true + solutionOnBody: false + solution: "Lung" + metabolizerTypes: [ Slime ] + groups: + - id: Gas + rateModifier: 100.0 diff --git a/Resources/Prototypes/Body/Parts/slime.yml b/Resources/Prototypes/Body/Parts/slime.yml index c43f42ba38..5fa824ed76 100644 --- a/Resources/Prototypes/Body/Parts/slime.yml +++ b/Resources/Prototypes/Body/Parts/slime.yml @@ -26,6 +26,7 @@ compatibility: Slime mechanisms: - SentientSlimeCore + - OrganSlimeLungs # criticalThreshold: 100 # deadThreshold: 150 diff --git a/Resources/Prototypes/Entities/Mobs/Species/slime.yml b/Resources/Prototypes/Entities/Mobs/Species/slime.yml index 6c62dd9140..128b87fc88 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/slime.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/slime.yml @@ -147,6 +147,14 @@ spawned: - id: FoodMeatSlime amount: 5 + - type: Respirator + damage: + types: + Asphyxiation: 0.2 + damageRecovery: + types: + Asphyxiation: -1.0 + maxSaturation: 15 - type: entity save: false diff --git a/Resources/Prototypes/Reagents/gases.yml b/Resources/Prototypes/Reagents/gases.yml index 5eaa92088c..e33f58dcd3 100644 --- a/Resources/Prototypes/Reagents/gases.yml +++ b/Resources/Prototypes/Reagents/gases.yml @@ -139,6 +139,10 @@ conditions: - !type:OrganType type: Vox + - !type:Oxygenate + conditions: + - !type:OrganType + type: Slime # Converts Nitrogen into CO2 - !type:ModifyLungGas conditions: