]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Slime mobs breathe nitrogen and resprite their organs (#20577)
authorNim <128169402+Nimfar11@users.noreply.github.com>
Sun, 1 Oct 2023 14:34:29 +0000 (17:34 +0300)
committerGitHub <noreply@github.com>
Sun, 1 Oct 2023 14:34:29 +0000 (10:34 -0400)
* Slimes breathe nitrogen and resprite their organs

* ups

* mmm

Resources/Prototypes/Body/Organs/Animal/slimes.yml [new file with mode: 0644]
Resources/Prototypes/Body/Organs/slime.yml
Resources/Prototypes/Body/Prototypes/Animal/slimes.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml
Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png [new file with mode: 0644]
Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png [new file with mode: 0644]
Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png [new file with mode: 0644]
Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png [new file with mode: 0644]
Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-r-slime.png [new file with mode: 0644]
Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json [new file with mode: 0644]

diff --git a/Resources/Prototypes/Body/Organs/Animal/slimes.yml b/Resources/Prototypes/Body/Organs/Animal/slimes.yml
new file mode 100644 (file)
index 0000000..f5d9455
--- /dev/null
@@ -0,0 +1,56 @@
+- type: entity
+  id: SentientSlimesCore
+  parent: [BaseItem, OrganHumanBrain]
+  name: sentient slimes core
+  description: "The source of incredible, unending gooeyness."
+  components:
+    - type: Sprite
+      sprite: Mobs/Species/Slime/organs.rsi
+      state: brain-slime
+    - type: Stomach
+    - type: Metabolizer
+      maxReagents: 3
+      metabolizerTypes: [ Slime ]
+      removeEmpty: true
+      groups:
+        - id: Food
+        - id: Drink
+        - id: Medicine
+        - id: Poison
+        - id: Narcotic
+        - id: Alcohol
+          rateModifier: 0.2
+    - type: SolutionContainerManager
+      solutions:
+        stomach:
+          maxVol: 30.0
+
+- type: entity
+  id: OrganSlimesLungs
+  parent: BaseHumanOrgan
+  name: slimes gas sacs
+  description: "Collects nitrogen, which slime cells use for maintenance."
+  components:
+    - type: Sprite
+      sprite: Mobs/Species/Slime/organs.rsi
+      layers:
+        - state: lung-l-slime
+        - state: lung-r-slime
+    - type: Lung
+    - type: Metabolizer
+      removeEmpty: true
+      solutionOnBody: false
+      solution: "Lung"
+      metabolizerTypes: [ Slime ]
+      groups:
+      - id: Gas
+        rateModifier: 100.0
+    - type: SolutionContainerManager
+      solutions:
+        organ:
+          reagents:
+          - ReagentId: Nutriment
+            Quantity: 10
+        Lung:
+          maxVol: 100.0
+          canReact: false
index 4bb07da4dc2e1db1bbd1d8a6fa2ac01b7d4eb609..e6ce18b335d2556c52bae160db07bee81cbaed91 100644 (file)
@@ -4,6 +4,9 @@
   name: sentient slime core
   description: "The source of incredible, unending gooeyness."
   components:
+    - type: Sprite
+      sprite: Mobs/Species/Slime/organs.rsi
+      state: brain-slime
     - type: Stomach
     - type: Metabolizer
       maxReagents: 6
   description: "Collects nitrogen, which slime cells use for maintenance."
   components:
   - type: Sprite
+    sprite: Mobs/Species/Slime/organs.rsi
     layers:
-      - state: lung-l
-      - state: lung-r
+      - state: lung-l-slime
+      - state: lung-r-slime
   - type: Lung
   - type: Metabolizer
     removeEmpty: true
diff --git a/Resources/Prototypes/Body/Prototypes/Animal/slimes.yml b/Resources/Prototypes/Body/Prototypes/Animal/slimes.yml
new file mode 100644 (file)
index 0000000..8d9827e
--- /dev/null
@@ -0,0 +1,18 @@
+- type: body
+  id: Slimes
+  name: "slimes"
+  root: torso
+  slots:
+    torso:
+      part: TorsoSlime
+      connections:
+      - legs
+      organs:
+        core: SentientSlimesCore
+        lungs: OrganSlimesLungs
+    legs:
+      part: LegsAnimal
+      connections:
+      - feet
+    feet:
+      part: FeetAnimal
index 85a0b2afa44a467ba9b051443f7eaaf9c5c5e908..4d56face9d1f404ab26152fe18a88cd63d92ce30 100644 (file)
@@ -94,6 +94,9 @@
         type: Local
         messages: [ "slime-hurt-by-water-popup" ]
         probability: 0.25
+  - type: Body
+    prototype: Slimes
+    requiredLegs: 1
   - type: CombatMode
   - type: MeleeWeapon
     hidden: true
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png
new file mode 100644 (file)
index 0000000..a536818
Binary files /dev/null and b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png differ
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png
new file mode 100644 (file)
index 0000000..c7e0adc
Binary files /dev/null and b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png differ
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png
new file mode 100644 (file)
index 0000000..b2a611f
Binary files /dev/null and b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png differ
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png
new file mode 100644 (file)
index 0000000..0c4591e
Binary files /dev/null and b/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png differ
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-r-slime.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-r-slime.png
new file mode 100644 (file)
index 0000000..f27bca8
Binary files /dev/null and b/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-r-slime.png differ
diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json b/Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json
new file mode 100644 (file)
index 0000000..cacfcdc
--- /dev/null
@@ -0,0 +1,28 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Sprited by Nimfar11 (Github) for Space Station 14",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "brain-slime"
+    },
+    {
+      "name": "brain-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "brain-inhand-right",
+      "directions": 4
+    },
+    {
+      "name": "lung-l-slime"
+    },
+    {
+      "name": "lung-r-slime"
+    }
+  ]
+}