From: Lazzi0706 <49803294+Lazzi0706@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:39:09 +0000 (+0700) Subject: Added thresholds and new stomatch for mice (#22143) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bef727249f1b8363c88b89f95e6fc26fb5f54c99;p=space-station-14.git Added thresholds and new stomatch for mice (#22143) Co-authored-by: Lazzi0706 --- diff --git a/Resources/Prototypes/Body/Organs/Animal/animal.yml b/Resources/Prototypes/Body/Organs/Animal/animal.yml index 083d596152..358fc74bca 100644 --- a/Resources/Prototypes/Body/Organs/Animal/animal.yml +++ b/Resources/Prototypes/Body/Organs/Animal/animal.yml @@ -81,6 +81,17 @@ - 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 diff --git a/Resources/Prototypes/Body/Prototypes/Animal/animal.yml b/Resources/Prototypes/Body/Prototypes/Animal/animal.yml index aeea15df6d..a8c81f9eb6 100644 --- a/Resources/Prototypes/Body/Prototypes/Animal/animal.yml +++ b/Resources/Prototypes/Body/Prototypes/Animal/animal.yml @@ -19,3 +19,25 @@ - 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 diff --git a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml index 79b4b73e2e..8a15b89cc7 100644 --- a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml +++ b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml @@ -1158,6 +1158,8 @@ id: MobMouse description: Squeak! components: + - type: Body + prototype: Mouse - type: GhostRole makeSentient: true allowSpeech: true @@ -1226,6 +1228,12 @@ 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