]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added thresholds and new stomatch for mice (#22143)
authorLazzi0706 <49803294+Lazzi0706@users.noreply.github.com>
Tue, 5 Dec 2023 10:39:09 +0000 (17:39 +0700)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 10:39:09 +0000 (03:39 -0700)
Co-authored-by: Lazzi0706 <lazzikrytskiy0706@gmail.com>
Resources/Prototypes/Body/Organs/Animal/animal.yml
Resources/Prototypes/Body/Prototypes/Animal/animal.yml
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml

index 083d596152a047b2ec1674042f87eb25d66867f7..358fc74bca601febea2bf5a9e2518ecc6e1affbf 100644 (file)
     - id: Food
     - id: Drink
 
+- type: entity
+  id: OrganMouseStomach
+  parent: OrganAnimalStomach
+  name: stomach
+  noSpawn: true
+  components:
+  - type: SolutionContainerManager
+    solutions:
+      stomach:
+        maxVol: 30
+
 - type: entity
   id: OrganAnimalLiver
   parent: BaseAnimalOrgan
index aeea15df6d3d19ee34d623341f5d4ee69c1044d7..a8c81f9eb609ff479dfe7a0a8a832126debcaf5b 100644 (file)
       - feet
     feet:
       part: FeetAnimal
+
+- type: body
+  id: Mouse
+  name: "mouse"
+  root: torso
+  slots:
+    torso:
+      part: TorsoAnimal
+      connections:
+      - legs
+      organs:
+        lungs: OrganAnimalLungs
+        stomach: OrganMouseStomach
+        liver: OrganAnimalLiver
+        heart: OrganAnimalHeart
+        kidneys: OrganAnimalKidneys
+    legs:
+      part: LegsAnimal
+      connections:
+      - feet
+    feet:
+      part: FeetAnimal
\ No newline at end of file
index 79b4b73e2e99eeb2db8c59534172608bfdd86895..8a15b89cc7d34115887f01190d6842e3e4bccbc0 100644 (file)
   id: MobMouse
   description: Squeak!
   components:
+  - type: Body
+    prototype: Mouse
   - type: GhostRole
     makeSentient: true
     allowSpeech: true
         Base: splat-0
   - type: Food
   - type: Hunger
+    thresholds:
+      Overfed: 35
+      Okay: 25
+      Peckish: 15
+      Starving: 10
+      Dead: 0
     baseDecayRate: 0.5 # I'm very hungry! Give me. The cheese.
   - type: Extractable
     grindableSolutionName: food