Revamp the entire skillset and rebalance everything.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.fretux.ascend.player;
|
||||
|
||||
import net.fretux.ascend.api.PassiveAgilityApi;
|
||||
import net.fretux.ascend.compat.IronsSpellbooksCompat;
|
||||
import net.fretux.ascend.config.AscendConfig;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
@@ -57,7 +58,7 @@ public final class StatEffects {
|
||||
AttributeInstance movement = player.getAttribute(Attributes.MOVEMENT_SPEED);
|
||||
if (movement == null) return;
|
||||
movement.removeModifier(AGILITY_SPEED_UUID);
|
||||
double bonus = getAgilityMovementSpeedBonus(level);
|
||||
double bonus = getAgilityMovementSpeedBonus(player, level);
|
||||
if (bonus > 0) movement.addTransientModifier(new AttributeModifier(AGILITY_SPEED_UUID,
|
||||
"Ascend Agility movement bonus", bonus, AttributeModifier.Operation.MULTIPLY_BASE));
|
||||
}
|
||||
@@ -66,6 +67,9 @@ public final class StatEffects {
|
||||
public static double getStrengthKnockbackBonus(int level) { return normalized(level) * configured(AscendConfig.COMMON.strengthKnockbackBonus); }
|
||||
public static double getStrengthArmorPenetration(int level) { return normalized(level) * configured(AscendConfig.COMMON.strengthArmorPenetration); }
|
||||
public static double getAgilityMovementSpeedBonus(int level) { return normalized(level) * configured(AscendConfig.COMMON.agilityMovementSpeedBonus); }
|
||||
public static double getAgilityMovementSpeedBonus(Player player, int level) {
|
||||
return PassiveAgilityApi.getNormalizedAgility(player, level) * configured(AscendConfig.COMMON.agilityMovementSpeedBonus);
|
||||
}
|
||||
public static int getMindManaBonus(int level) { return (int) Math.floor(normalized(level) * configured(AscendConfig.COMMON.mindMaxManaBonus)); }
|
||||
public static double getMindManaRegenBonus(int level) { return normalized(level) * configured(AscendConfig.COMMON.mindManaRegenBonus); }
|
||||
public static double getIntelligenceSpellPowerBonus(int level) { return normalized(level) * configured(AscendConfig.COMMON.intelligenceSpellPowerBonus); }
|
||||
|
||||
Reference in New Issue
Block a user