mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed calculations on Reduced Cooldown perk
This commit is contained in:
parent
adffea1d52
commit
dce1d7ba39
@ -43,13 +43,13 @@ public class Skills {
|
|||||||
|
|
||||||
//Reduced Cooldown Donor Perks
|
//Reduced Cooldown Donor Perks
|
||||||
if (player.hasPermission("mcmmo.perks.cooldowns.halved")) {
|
if (player.hasPermission("mcmmo.perks.cooldowns.halved")) {
|
||||||
adjustedCooldown = adjustedCooldown / 2;
|
adjustedCooldown = (int) (adjustedCooldown * 0.5);
|
||||||
}
|
}
|
||||||
else if (player.hasPermission("mcmmo.perks.cooldowns.thirded")) {
|
else if (player.hasPermission("mcmmo.perks.cooldowns.thirded")) {
|
||||||
adjustedCooldown = adjustedCooldown / 3;
|
adjustedCooldown = (int) (adjustedCooldown * 0.66);
|
||||||
}
|
}
|
||||||
else if (player.hasPermission("mcmmo.perks.cooldowns.quartered")) {
|
else if (player.hasPermission("mcmmo.perks.cooldowns.quartered")) {
|
||||||
adjustedCooldown = adjustedCooldown / 4;
|
adjustedCooldown = (int) (adjustedCooldown * 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentTime - oldTime >= (adjustedCooldown * TIME_CONVERSION_FACTOR)) {
|
if (currentTime - oldTime >= (adjustedCooldown * TIME_CONVERSION_FACTOR)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user