]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Tomato killers don't kill the server anymore. (#28173)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Sat, 25 May 2024 20:18:40 +0000 (23:18 +0300)
committerGitHub <noreply@github.com>
Sat, 25 May 2024 20:18:40 +0000 (16:18 -0400)
* tomato killer auto death

* fix

* Update miscellaneous.yml

Resources/Prototypes/Entities/Mobs/NPCs/miscellaneous.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/meat.yml

index f77429d5978de94249536c22f0fb683f49fdd6a9..e09d3917c751b925ac4aef93b4611e45af58767d 100644 (file)
     - trigger:
         !type:DamageTypeTrigger
         damageType: Blunt
-        damage: 100
+        damage: 40
       behaviors:
-      - !type:GibBehavior { }
+      - !type:SpawnEntitiesBehavior
+        spawn:
+          FoodMeatTomato:
+            min: 1
+            max: 2
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: gib
   - type: MobThresholds
     thresholds:
       0: Alive
-      24: Dead
+      35: Dead
   - type: Fixtures
     fixtures:
       fix1:
     hidden: true
     damage:
       groups:
-        Brute: 4
+        Brute: 9
     animation: WeaponArcBite
   - type: Climbing
   - type: NameIdentifier
   - type: Appearance
   - type: Produce
     seedId: killerTomato
+  - type: PassiveDamage # Slight passive damage. 35 hp \ 5 min \ 60 sec = 0.08
+    allowedStates:
+    - Alive
+    - Dead
+    damageCap: 50
+    damage:
+      types:
+        Blunt: 0.11
+  - type: StaticPrice
+    price: 400
index 81c98750dc2698618f71e0ebd74981e3387fc1ec..bb0f05c1814ffe8c22bc18c6376878688523785d 100644 (file)
   - type: SliceableFood
     count: 3
     slice: FoodMeatTomatoCutlet
+  - type: StaticPrice
+    price: 100
 
 - type: entity
   name: salami
   - type: Sprite
     state: salami-slice
     color: red
+  - type: StaticPrice
+    price: 30
 
 - type: entity
   name: salami slice