]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added the ability to eat organs, mmm tastes like people (#20225)
authorHenry <sigma1198@gmail.com>
Mon, 18 Sep 2023 00:20:11 +0000 (17:20 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 00:20:11 +0000 (20:20 -0400)
* added ability to eat organs

* Update animal.yml

* adjusting for inflation

* test

Resources/Prototypes/Body/Organs/Animal/animal.yml
Resources/Prototypes/Body/Organs/arachnid.yml
Resources/Prototypes/Body/Organs/diona.yml
Resources/Prototypes/Body/Organs/dwarf.yml
Resources/Prototypes/Body/Organs/human.yml
Resources/Prototypes/Body/Organs/moth.yml
Resources/Prototypes/Body/Organs/rat.yml
Resources/Prototypes/Body/Organs/reptilian.yml
Resources/Prototypes/Body/Organs/slime.yml
Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml

index e84528fbb41c19eb955785e927d98dca6c3f551f..db7793210b556fa6af0dc2c271e6c4ac5952e729 100644 (file)
@@ -4,10 +4,21 @@
   abstract: true
   components:
   - type: Organ
+  - type: Food
   - type: Sprite
     sprite: Mobs/Species/Human/organs.rsi
   - type: StaticPrice
     price: 50
+  - type: SolutionContainerManager
+    solutions:
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
+  - type: FlavorProfile
+    flavors:
+      - chicken # everything kinda tastes like chicken
 
 
 - type: entity
       Lung:
         maxVol: 100.0
         canReact: false
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
 
 - type: entity
   id: OrganAnimalStomach
     solutions:
       stomach:
         maxVol: 40
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Stomach
   - type: Metabolizer
     maxReagents: 3
index d21a2c1763e73beccec6f31f457ef93972e4a9c7..3ec991af865f3f93a493f7de037016766c424b32 100644 (file)
         reagents:
         - ReagentId: Nutriment
           Quantity: 10
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
 
 - type: entity
   id: OrganArachnidStomach
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Metabolizer
     updateFrequency: 1.5
 
       Lung:
         maxVol: 100.0
         canReact: false
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
 
 - type: entity
   id: OrganArachnidHeart
index 3da64f3bbddb5672a53c63ec1786c24ef2c2b449..52087f062a801650793cf108ea210337e5faf5a6 100644 (file)
         reagents:
         - ReagentId: Nutriment
           Quantity: 10
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
+  - type: FlavorProfile
+    flavors:
+      - people
 
 - type: entity
   id: OrganDionaBrain
       Lung:
         maxVol: 100
         canReact: False
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Brain
   - type: Lung #lungs in they head. why they there tho?
   - type: Metabolizer
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Stomach
   - type: Metabolizer
     maxReagents: 6
index b29296eb8e036b035766a7d7e031aca5051563c3..afe2c66b26ba4443a1d8838084183e25ed340d9d 100644 (file)
     solutions:
       stomach:
         maxVol: 75
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Stomach
   - type: Metabolizer
     # mm very yummy
index 8b4aedfc9363f39def998c73bd194ed18bf4f8b3..91142e8def40dfc8df23e360a88acbb23190e1a2 100644 (file)
         reagents:
         - ReagentId: Nutriment
           Quantity: 10
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
+  - type: FlavorProfile
+    flavors:
+      - people
 
 - type: entity
   id: OrganHumanBrain
       Lung:
         maxVol: 100.0
         canReact: false
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
 
 - type: entity
   id: OrganHumanHeart
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Stomach
   # The stomach metabolizes stuff like foods and drinks.
   # TODO: Have it work off of the ent's solution container, and move this
index c9c66b15ead7378f0211147fd2e3a8478d99be12..551d8d4d1f22c518d9927da56fb07363c5c5b960 100644 (file)
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Metabolizer
     maxReagents: 6
     metabolizerTypes: [ Moth ]
index 868505cb436f58a5637ad7d56e985c3597ad9f76..fb93012d97ba45e2c777ba73d9dd6c4a1333d205 100644 (file)
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
   - type: Sprite
     state: stomach
index 176131380705eeab7cd4142fe1d44c39e9f329b3..d7145ee36f291f950b16a7cd385cee227e5408dc 100644 (file)
@@ -8,3 +8,8 @@
     solutions:
       stomach:
         maxVol: 50
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
index 3b78b4f4e36775dba6e48fb4e5632f77d1605f03..4bb07da4dc2e1db1bbd1d8a6fa2ac01b7d4eb609 100644 (file)
       solutions:
         stomach:
           maxVol: 50.0
+        food:
+          maxVol: 5
+          reagents:
+          - ReagentId: Nutriment
+            Quantity: 5
 
 
 - type: entity
@@ -51,3 +56,8 @@
       Lung:
         maxVol: 100.0
         canReact: false
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
index c1bdf1adc7324bc596273de2a59c14b87ed206f0..b23797d590a6b9f6cb6c9a5f7acf28613952b29e 100644 (file)
@@ -4,7 +4,7 @@
     sprite: Mobs/Animals/bee.rsi
     state: 0
   product: CrateNPCBee
-  cost: 4000
+  cost: 4200
   category: Livestock
   group: market
 
@@ -14,7 +14,7 @@
     sprite: Mobs/Animals/butterfly.rsi
     state: butterfly
   product: CrateNPCButterflies
-  cost: 2500
+  cost: 2700
   category: Livestock
   group: market
 
@@ -34,7 +34,7 @@
     sprite: Mobs/Animals/chicken.rsi
     state: icon-1
   product: CrateNPCChicken
-  cost: 2500
+  cost: 2600
   category: Livestock
   group: market
 
@@ -44,7 +44,7 @@
     sprite: Mobs/Animals/crab.rsi
     state: crab
   product: CrateNPCCrab
-  cost: 1800
+  cost: 2000
   category: Livestock
   group: market
 
@@ -54,7 +54,7 @@
     sprite: Mobs/Animals/duck.rsi
     state: icon-0
   product: CrateNPCDuck
-  cost: 3500
+  cost: 3800
   category: Livestock
   group: market
 
     sprite: Mobs/Animals/mouse.rsi
     state: icon-0
   product: CrateNPCMouse
-  cost: 2500
+  cost: 2700
   category: Livestock
   group: market