mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Fix leveling + Fix Roll
This commit is contained in:
parent
e7e28ec3cb
commit
ffa35d0179
@ -24,7 +24,7 @@ public class ConfigAcrobatics {
|
|||||||
return subSkills.getDodge();
|
return subSkills.getDodge();
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getDamageTheshold() {
|
public double getRollDamageTheshold() {
|
||||||
return getRoll().getDamageTheshold();
|
return getRoll().getDamageTheshold();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ public class Roll extends AcrobaticsSubSkill {
|
|||||||
return gracefulRollCheck(player, mcMMOPlayer, damage, skillLevel);
|
return gracefulRollCheck(player, mcMMOPlayer, damage, skillLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
double modifiedDamage = calculateModifiedRollDamage(damage, AdvancedConfig.getInstance().getRollDamageThreshold());
|
double modifiedDamage = calculateModifiedRollDamage(damage, mcMMO.getConfigManager().getConfigAcrobatics().getRollDamageTheshold());
|
||||||
|
|
||||||
if (!isFatal(player, modifiedDamage)
|
if (!isFatal(player, modifiedDamage)
|
||||||
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.ACROBATICS_ROLL, player)) {
|
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.ACROBATICS_ROLL, player)) {
|
||||||
|
@ -45,9 +45,6 @@ public class SelfListener implements Listener {
|
|||||||
if (mcMMO.getScoreboardSettings().getScoreboardsEnabled())
|
if (mcMMO.getScoreboardSettings().getScoreboardsEnabled())
|
||||||
ScoreboardManager.handleLevelUp(player, skill);
|
ScoreboardManager.handleLevelUp(player, skill);
|
||||||
|
|
||||||
if (!MainConfig.getInstance().getLevelUpEffectsEnabled()) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/*if ((event.getSkillLevel() % Config.getInstance().getLevelUpEffectsTier()) == 0) {
|
/*if ((event.getSkillLevel() % Config.getInstance().getLevelUpEffectsTier()) == 0) {
|
||||||
skill.celebrateLevelUp(player);
|
skill.celebrateLevelUp(player);
|
||||||
}*/
|
}*/
|
||||||
|
Loading…
Reference in New Issue
Block a user