Skip to content

Commit

Permalink
Change health modifier from percentage to static
Browse files Browse the repository at this point in the history
This change would work well if a mod/modpack was to change the default number of hearts.
  • Loading branch information
noolaan authored Jun 25, 2024
1 parent 8431358 commit 9e22db7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e22db7

Please sign in to comment.