From 1bf0cd1d154940c7a128759b91d75d21bf24cf05 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Tue, 13 Nov 2012 10:08:05 +0100 Subject: [PATCH] /fishing command will now also display the bonus gained from lucky perk --- .../com/gmail/nossr50/commands/skills/FishingCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java index dcc33ef24..27dc93cae 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java @@ -23,7 +23,11 @@ public class FishingCommand extends SkillCommand { protected void dataCalculations() { lootTier = Fishing.getFishingLootTier(profile); magicChance = percent.format((float) lootTier / 15); - shakeChance = String.valueOf(Fishing.getShakeChance(lootTier)); + int dropChance = Fishing.getShakeChance(lootTier); + if (player.hasPermission("mcmmo.perks.lucky.fishing")) { + dropChance = (int) (dropChance * 1.25); + } + shakeChance = String.valueOf(dropChance); } @Override