]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Healing skeletons by pouring milk over them (and clean pie remains off their skulls...
authorMyakot <30875116+Myakot@users.noreply.github.com>
Tue, 24 Oct 2023 20:58:33 +0000 (03:58 +0700)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2023 20:58:33 +0000 (16:58 -0400)
* mvp done - skellies can heal by spillink regular milk on themselves and clean themselves off creaming with water

* added other types of healing milk, also made a separate reaction to oat milk - it has almost no calcium in it

* fixed indent error, made a dumb mistake

Resources/Locale/en-US/species/skeleton.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Mobs/Species/skeleton.yml

diff --git a/Resources/Locale/en-US/species/skeleton.ftl b/Resources/Locale/en-US/species/skeleton.ftl
new file mode 100644 (file)
index 0000000..efc8fe9
--- /dev/null
@@ -0,0 +1,2 @@
+skeleton-healed-by-milk-popup = Calcium restored.
+skeleton-sprayed-by-oat-milk-popup = Feels like fake milk. You feel nothing.
index 15e83b0908c6865f9c187ec6a285a1b7774fd582..f4f66d6c0cc2e8a92a700be63703ac08705cbee5 100644 (file)
           - MobMask
         layer:
           - MobLayer
+  - type: Reactive
+    groups:
+      Flammable: [ Touch ]
+      Extinguish: [ Touch ]
+    reactions:
+    - reagents: [ Water, SpaceCleaner ]
+      methods: [ Touch ]
+      effects:
+      - !type:WashCreamPieReaction
+    - reagents: [ Milk, MilkGoat, MilkSoy, MilkSpoiled ]
+      # add new types of milk to reagents as they appear, oat milk isn't on the list
+      # because turns out oat milk has 1/30th the amount of calcium in it compared to the rest
+      # even if it's a meme - I did research
+      methods: [ Touch ]
+      effects: # TODO: when magic is around - make a milk transformation to a skeleton monster
+      - !type:HealthChange
+        scaled: true
+        damage:
+          groups:
+            Burn: -1 # healing obviously up to discussion
+            Brute: -1 # these groups are the only 2 possible ways to damage a skeleton
+      - !type:PopupMessage
+        type: Local
+        visualType: Large
+        messages: [ "skeleton-healed-by-milk-popup" ]
+        probability: 0.25
+    - reagents: [ MilkOat ]
+      methods: [ Touch ]
+      effects:
+        - !type:PopupMessage
+          type: Local
+          visualType: Large
+          messages: [ "skeleton-sprayed-by-oat-milk-popup" ]
+          probability: 0.5
 
 - type: entity
   parent: BaseSpeciesDummy