From 6241b6dfe940088def6129f8e168272720523c91 Mon Sep 17 00:00:00 2001 From: Oaksworth <46974852+Oaksworth@users.noreply.github.com> Date: Wed, 23 Jan 2019 18:58:53 -0200 Subject: [PATCH] Update Archery to alphabetical order --- .../commands/skills/ArcheryCommand.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java index c329ac080..d850d83dd 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/ArcheryCommand.java @@ -28,24 +28,24 @@ public class ArcheryCommand extends SkillCommand { @Override protected void dataCalculations(Player player, float skillValue, boolean isLucky) { - // SKILL SHOT - if (canSkillShot) { - double bonus = (skillValue / Archery.skillShotIncreaseLevel) * Archery.skillShotIncreasePercentage; - skillShotBonus = percent.format(Archery.getSkillShotBonusDamage(player, 0)); + // ARCHERY_ARROW_RETRIEVAL + if (canRetrieve) { + String[] retrieveStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.ARCHERY_ARROW_RETRIEVAL, isLucky); + retrieveChance = retrieveStrings[0]; + retrieveChanceLucky = retrieveStrings[1]; } - + // ARCHERY_DAZE if (canDaze) { String[] dazeStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.ARCHERY_DAZE, isLucky); dazeChance = dazeStrings[0]; dazeChanceLucky = dazeStrings[1]; } - - // ARCHERY_ARROW_RETRIEVAL - if (canRetrieve) { - String[] retrieveStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.ARCHERY_ARROW_RETRIEVAL, isLucky); - retrieveChance = retrieveStrings[0]; - retrieveChanceLucky = retrieveStrings[1]; + + // SKILL SHOT + if (canSkillShot) { + double bonus = (skillValue / Archery.skillShotIncreaseLevel) * Archery.skillShotIncreasePercentage; + skillShotBonus = percent.format(Archery.getSkillShotBonusDamage(player, 0)); } }