From 68bf691d3b1d0762e2ba36d86c6958d0cce1787e Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Sun, 6 Feb 2022 21:48:20 -0700 Subject: [PATCH] Slimepeople adjustments (#6513) --- Resources/Locale/en-US/species/slime.ftl | 1 + Resources/Prototypes/Damage/modifier_sets.yml | 10 +++++++ .../Entities/Mobs/Species/slime.yml | 28 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 Resources/Locale/en-US/species/slime.ftl diff --git a/Resources/Locale/en-US/species/slime.ftl b/Resources/Locale/en-US/species/slime.ftl new file mode 100644 index 0000000000..87b77511ba --- /dev/null +++ b/Resources/Locale/en-US/species/slime.ftl @@ -0,0 +1 @@ +slime-hurt-by-water-popup = The water melts some of your slime away! diff --git a/Resources/Prototypes/Damage/modifier_sets.yml b/Resources/Prototypes/Damage/modifier_sets.yml index ae68d48f48..f3b10b32f2 100644 --- a/Resources/Prototypes/Damage/modifier_sets.yml +++ b/Resources/Prototypes/Damage/modifier_sets.yml @@ -62,3 +62,13 @@ Heat: 2.0 flatReductions: Blunt: 5 + +- type: damageModifierSet + id: Slime + coefficients: + Blunt: 0.6 + Slash: 1.2 + Piercing: 1.2 + Cold: 1.5 + Poison: 0.8 + diff --git a/Resources/Prototypes/Entities/Mobs/Species/slime.yml b/Resources/Prototypes/Entities/Mobs/Species/slime.yml index 4df250cf48..58666b2515 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/slime.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/slime.yml @@ -96,6 +96,34 @@ - type: HumanoidAppearance hairMatchesSkin: true hairAlpha: 0.5 + - type: Damageable + damageContainer: Biological + damageModifierSet: Slime + - type: Barotrauma + damage: + types: + Blunt: 1.4 #per second, scales with pressure and other constants. Twice as much as humans. + - type: Reactive + groups: + Flammable: [ Touch ] + Extinguish: [ Touch ] + reactions: + - reagents: [ Water, SpaceCleaner ] + methods: [ Touch ] + effects: + - !type:WashCreamPieReaction + - reagents: [ Water ] + methods: [ Touch ] + effects: + - !type:HealthChange + scaled: true + damage: + types: + Heat: 2 + - !type:PopupMessage + type: Local + messages: [ "slime-hurt-by-water-popup" ] + probability: 0.25 - type: Butcherable meat: FoodMeatSlime