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