From 52c3f563a2a2ec6f0e6aa1277a47817e20d9ed14 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 14 Apr 2024 10:18:59 -0500 Subject: [PATCH] changed heal receptivity for vamps and elves --- src/engine/objects/Resists.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index 46ed5cf0..b6ebcc36 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -465,6 +465,7 @@ public class Resists { cold += rb.getFloat(ModType.Resistance, SourceType.Cold); healing += rb.getFloat(ModType.Resistance, SourceType.Healing); // DamageType.Healing.name()); + //HHO // String protectionString = rb.getString("protection"); @@ -498,6 +499,13 @@ public class Resists { pierce += phys[2]; } + + if(((PlayerCharacter)ac).getRace().getName().contains("Vampire")){ + healing -= 20; + } + if(((PlayerCharacter)ac).getRace().getName().contains("Elf")){ + healing -= 15; + } } this.resists.put(DamageType.Slash, slash);