From c0dde01f3e683eb18dbffbdd037883c57130b7a1 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 22 Jan 2019 14:21:48 -0800 Subject: [PATCH] Fixing a display error for retromode and the acrobatics command --- .../com/gmail/nossr50/commands/skills/AcrobaticsCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java index 1016293b7..22498e89a 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/AcrobaticsCommand.java @@ -1,6 +1,7 @@ package com.gmail.nossr50.commands.skills; import com.gmail.nossr50.config.AdvancedConfig; +import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.skills.PrimarySkillType; import com.gmail.nossr50.datatypes.skills.SubSkillType; import com.gmail.nossr50.datatypes.skills.subskills.AbstractSubSkill; @@ -67,7 +68,7 @@ public class AcrobaticsCommand extends SkillCommand { if(abstractSubSkill != null) { - double maxBonusLevel = AdvancedConfig.getInstance().getMaxBonusLevel(abstractSubSkill); + double maxBonusLevel = Config.getInstance().getIsRetroMode() ? AdvancedConfig.getInstance().getMaxBonusLevel(abstractSubSkill) * 10 : AdvancedConfig.getInstance().getMaxBonusLevel(abstractSubSkill); double maxChance = AdvancedConfig.getInstance().getMaxChance(abstractSubSkill); double rollChance = SkillUtils.getChanceOfSuccess(skillValue, maxBonusLevel, maxChance); double graceChance = SkillUtils.getChanceOfSuccess(skillValue, maxBonusLevel, maxChance / 2);