From 9e22db7236a0a964d4f9ca63cbf6ca4bce729ccc Mon Sep 17 00:00:00 2001 From: nolan <32991023+noolaan@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:27:45 -0500 Subject: [PATCH] Change health modifier from percentage to static This change would work well if a mod/modpack was to change the default number of hearts. --- .../java/com/aizistral/enigmaticlegacy/items/SoulCrystal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/aizistral/enigmaticlegacy/items/SoulCrystal.java b/src/main/java/com/aizistral/enigmaticlegacy/items/SoulCrystal.java index 3e5babf5..4d67a65b 100644 --- a/src/main/java/com/aizistral/enigmaticlegacy/items/SoulCrystal.java +++ b/src/main/java/com/aizistral/enigmaticlegacy/items/SoulCrystal.java @@ -113,7 +113,7 @@ public void updatePlayerSoulMap(Player player) { int lostFragments = SuperpositionHandler.getPersistentInteger(player, "enigmaticlegacy.lostsoulfragments", 0); if (lostFragments > 0) { - soulMap.put(Attributes.MAX_HEALTH, new AttributeModifier(UUID.fromString("66a2aa2d-7e3c-4af4-882f-bd2b2ded8e7b"), "Lost Soul Health Modifier", -0.1F * lostFragments, AttributeModifier.Operation.MULTIPLY_TOTAL)); + soulMap.put(Attributes.MAX_HEALTH, new AttributeModifier(UUID.fromString("66a2aa2d-7e3c-4af4-882f-bd2b2ded8e7b"), "Lost Soul Health Modifier", -2 * lostFragments, AttributeModifier.Operation.ADD_VALUE)); } // Applies new attributes