Vampirism - Become a vampire!

Vampirism - Become a vampire!

16M Downloads

Fix/Improve Blood Exhaustion modifier

maxanier opened this issue ยท 0 comments

commented

By Shadow Bolt:

/**
     * Apply the armor unaffected level scaled entity attribute modifiers
     */
    private void applyLevelModifiersA(int level) {
        LevelAttributeModifier.applyModifier(player, Attributes.MAX_HEALTH, "Vampire", level, getMaxLevel(), VampirismConfig.BALANCE.vpHealthMaxMod.get(), 0.5, AttributeModifier.Operation.ADDITION, true);
        LevelAttributeModifier.applyModifier(player, ModAttributes.blood_exhaustion, "Vampire", level, getMaxLevel(), VampirismConfig.BALANCE.vpExhaustionMaxMod.get(), 0.5, AttributeModifier.Operation.ADDITION, false);
    }

Because currently it's base x maxmod x level/levelmax, and there's no reason for that because you could just premultiply
That change makes it base + maxmod x level/levelmax

or

 LevelAttributeModifier.applyModifier(player, ModAttributes.blood_exhaustion, "Vampire", level-1, getMaxLevel()-1, VampirismConfig.BALANCE.vpExhaustionMaxMod.get()-VampirismConfig.BALANCE.vpBasicBloodExhaustionMod.get(), 0.5, AttributeModifier.Operation.ADDITION, false);