Fixing silly calculations by me.

This commit is contained in:
TfT_02
2013-01-13 00:11:23 +01:00
parent 54ef85e1a3
commit 5e26f2e707
11 changed files with 36 additions and 36 deletions

View File

@ -49,14 +49,14 @@ public class FishingCommand extends SkillCommand {
magicChanceInt = (int) (magicChanceInt * 1.1D);
}
magicChance = percent.format(magicChanceInt / 100D);
if (magicChanceInt + (magicChanceInt * 0.3333D) >= 100D) magicChanceLucky = percent.format(1D);
else magicChanceLucky = percent.format((magicChanceInt + (magicChanceInt * 0.3333D)) / 100D);
if (magicChanceInt * 1.3333D >= 100D) magicChanceLucky = percent.format(1D);
else magicChanceLucky = percent.format(magicChanceInt * 1.3333D / 100D);
//Shake
int dropChance = Fishing.getShakeChance(lootTier);
shakeChance = percent.format(dropChance / 100D);
if (dropChance + (dropChance * 0.3333D) >= 100D) shakeChanceLucky = percent.format(1D);
else shakeChanceLucky = percent.format((dropChance + (dropChance * 0.3333D)) / 100D);
if (dropChance * 1.3333D >= 100D) shakeChanceLucky = percent.format(1D);
else shakeChanceLucky = percent.format(dropChance * 1.3333D / 100D);
shakeUnlockLevel = advancedConfig.getShakeUnlockLevel();
//Fishermans Diet