mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 09:06:46 +01:00
Display Endurance Perk stats in skill commands
This commit is contained in:
parent
e01b6f175c
commit
bdfd7d9839
@ -20,6 +20,7 @@ public class AxesCommand extends SkillCommand {
|
||||
private String impactDamage;
|
||||
private String greaterImpactDamage;
|
||||
private String skullSplitterLength;
|
||||
private String skullSplitterLengthEndurance;
|
||||
|
||||
private int bonusDamageAxesBonusMax = advancedConfig.getBonusDamageAxesBonusMax();
|
||||
private int bonusDamageAxesMaxBonusLevel = advancedConfig.getBonusDamageAxesMaxBonusLevel();
|
||||
@ -35,6 +36,7 @@ public class AxesCommand extends SkillCommand {
|
||||
private boolean canImpact;
|
||||
private boolean canGreaterImpact;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public AxesCommand() {
|
||||
super(SkillType.AXES);
|
||||
@ -49,7 +51,24 @@ public class AxesCommand extends SkillCommand {
|
||||
//Armor Impact
|
||||
impactDamage = String.valueOf(1 + ((double) skillValue / (double) greaterImpactIncreaseLevel));
|
||||
//Skull Splitter
|
||||
skullSplitterLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
skullSplitterLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.AXES.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
skullSplitterLengthEndurance = String.valueOf(length);
|
||||
|
||||
//Greater Impact
|
||||
greaterImpactDamage = String.valueOf(greaterImpactBonusDamage);
|
||||
//Critical Strikes
|
||||
@ -71,6 +90,7 @@ public class AxesCommand extends SkillCommand {
|
||||
canImpact = Permissions.impact(player);
|
||||
canGreaterImpact = Permissions.greaterImpact(player);
|
||||
lucky = Permissions.luckyAxes(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -133,7 +153,10 @@ public class AxesCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canSkullSplitter) {
|
||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.SS.Length", new Object[] { skullSplitterLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.SS.Length", new Object[] { skullSplitterLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { skullSplitterLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Axes.Combat.SS.Length", new Object[] { skullSplitterLength }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,12 +11,14 @@ import com.gmail.nossr50.util.Permissions;
|
||||
public class ExcavationCommand extends SkillCommand {
|
||||
AdvancedConfig advancedConfig = AdvancedConfig.getInstance();
|
||||
private String gigaDrillBreakerLength;
|
||||
private String gigaDrillBreakerLengthEndurance;
|
||||
|
||||
private int abilityLengthIncreaseLevel = advancedConfig.getAbilityLength();
|
||||
|
||||
private boolean canGigaDrill;
|
||||
private boolean canTreasureHunt;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public ExcavationCommand() {
|
||||
super(SkillType.EXCAVATION);
|
||||
@ -24,7 +26,23 @@ public class ExcavationCommand extends SkillCommand {
|
||||
|
||||
@Override
|
||||
protected void dataCalculations() {
|
||||
gigaDrillBreakerLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
gigaDrillBreakerLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.EXCAVATION.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
gigaDrillBreakerLengthEndurance = String.valueOf(length);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -32,6 +50,7 @@ public class ExcavationCommand extends SkillCommand {
|
||||
canGigaDrill = Permissions.gigaDrillBreaker(player);
|
||||
canTreasureHunt = Permissions.excavationTreasures(player);
|
||||
lucky = Permissions.luckyExcavation(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -63,7 +82,10 @@ public class ExcavationCommand extends SkillCommand {
|
||||
@Override
|
||||
protected void statsDisplay() {
|
||||
if (canGigaDrill) {
|
||||
player.sendMessage(LocaleLoader.getString("Excavation.Effect.Length", new Object[] { gigaDrillBreakerLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Excavation.Effect.Length", new Object[] { gigaDrillBreakerLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { gigaDrillBreakerLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Excavation.Effect.Length", new Object[] { gigaDrillBreakerLength }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ public class HerbalismCommand extends SkillCommand {
|
||||
AdvancedConfig advancedConfig = AdvancedConfig.getInstance();
|
||||
|
||||
private String greenTerraLength;
|
||||
private String greenTerraLengthEndurance;
|
||||
private String greenThumbChance;
|
||||
private String greenThumbChanceLucky;
|
||||
private String greenThumbStage;
|
||||
@ -39,6 +40,7 @@ public class HerbalismCommand extends SkillCommand {
|
||||
private boolean canDoubleDrop;
|
||||
private boolean doubleDropsDisabled;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public HerbalismCommand() {
|
||||
super(SkillType.HERBALISM);
|
||||
@ -49,7 +51,24 @@ public class HerbalismCommand extends SkillCommand {
|
||||
DecimalFormat df = new DecimalFormat("0.0");
|
||||
float greenThumbChanceF;
|
||||
float doubleDropChanceF;
|
||||
greenTerraLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
greenTerraLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.HERBALISM.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
greenTerraLengthEndurance = String.valueOf(length);
|
||||
//FARMERS DIET
|
||||
if (skillValue >= farmersDietMaxLevel) farmersDietRank = "5";
|
||||
else farmersDietRank = String.valueOf((int) ((double) skillValue / (double) farmersDietRankChange));
|
||||
@ -81,6 +100,7 @@ public class HerbalismCommand extends SkillCommand {
|
||||
canDoubleDrop = Permissions.herbalismDoubleDrops(player);
|
||||
doubleDropsDisabled = configInstance.herbalismDoubleDropsDisabled();
|
||||
lucky = Permissions.luckyHerbalism(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -124,7 +144,10 @@ public class HerbalismCommand extends SkillCommand {
|
||||
@Override
|
||||
protected void statsDisplay() {
|
||||
if (canGreenTerra) {
|
||||
player.sendMessage(LocaleLoader.getString("Herbalism.Ability.GTe.Length", new Object[] { greenTerraLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Herbalism.Ability.GTe.Length", new Object[] { greenTerraLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { greenTerraLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Herbalism.Ability.GTe.Length", new Object[] { greenTerraLength }));
|
||||
}
|
||||
|
||||
if (canGreenThumbBlocks || canGreenThumbWheat) {
|
||||
|
@ -17,6 +17,7 @@ public class MiningCommand extends SkillCommand {
|
||||
private String doubleDropChance;
|
||||
private String doubleDropChanceLucky;
|
||||
private String superBreakerLength;
|
||||
private String superBreakerLengthEndurance;
|
||||
private String blastMiningRank;
|
||||
private String blastRadiusIncrease;
|
||||
private String blastDamageDecrease;
|
||||
@ -41,6 +42,7 @@ public class MiningCommand extends SkillCommand {
|
||||
private boolean canDemoExpert;
|
||||
private boolean doubleDropsDisabled;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public MiningCommand() {
|
||||
super(SkillType.MINING);
|
||||
@ -51,7 +53,23 @@ public class MiningCommand extends SkillCommand {
|
||||
DecimalFormat df = new DecimalFormat("0.0");
|
||||
float doubleDropChanceF;
|
||||
//Super Breaker
|
||||
superBreakerLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
superBreakerLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.MINING.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
superBreakerLengthEndurance = String.valueOf(length);
|
||||
//Double Drops
|
||||
if (skillValue >= doubleDropsMaxLevel) doubleDropChanceF = (float) (doubleDropsMaxBonus);
|
||||
else doubleDropChanceF = (float) ((doubleDropsMaxBonus / doubleDropsMaxLevel) * skillValue);
|
||||
@ -118,6 +136,7 @@ public class MiningCommand extends SkillCommand {
|
||||
canSuperBreaker = Permissions.superBreaker(player);
|
||||
doubleDropsDisabled = configInstance.miningDoubleDropsDisabled();
|
||||
lucky = Permissions.luckyMining(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -168,7 +187,10 @@ public class MiningCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canSuperBreaker) {
|
||||
player.sendMessage(LocaleLoader.getString("Mining.Ability.Length", new Object[] { superBreakerLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Mining.Ability.Length", new Object[] { superBreakerLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { superBreakerLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Mining.Ability.Length", new Object[] { superBreakerLength }));
|
||||
}
|
||||
|
||||
if (canBlast) {
|
||||
|
@ -19,6 +19,7 @@ public class SwordsCommand extends SkillCommand {
|
||||
private String bleedChance;
|
||||
private String bleedChanceLucky;
|
||||
private String serratedStrikesLength;
|
||||
private String serratedStrikesLengthEndurance;
|
||||
|
||||
private int abilityLengthIncreaseLevel = advancedConfig.getAbilityLength();
|
||||
private float bleedChanceMax = advancedConfig.getBleedChanceMax();
|
||||
@ -32,6 +33,7 @@ public class SwordsCommand extends SkillCommand {
|
||||
private boolean canSerratedStrike;
|
||||
private boolean canBleed;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public SwordsCommand() {
|
||||
super(SkillType.SWORDS);
|
||||
@ -42,8 +44,26 @@ public class SwordsCommand extends SkillCommand {
|
||||
DecimalFormat df = new DecimalFormat("0.0");
|
||||
float bleedChanceF;
|
||||
float counterAttackChanceF;
|
||||
serratedStrikesLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
//Serrated Strikes
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
serratedStrikesLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.SWORDS.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
serratedStrikesLengthEndurance = String.valueOf(length);
|
||||
|
||||
//Bleed
|
||||
if (skillValue >= bleedMaxLevel) bleedLength = String.valueOf(bleedMaxTicks);
|
||||
else bleedLength = String.valueOf(bleedBaseTicks);
|
||||
|
||||
@ -53,6 +73,7 @@ public class SwordsCommand extends SkillCommand {
|
||||
if (bleedChanceF + bleedChanceF * 0.3333D >= 100D) bleedChanceLucky = df.format(100D);
|
||||
else bleedChanceLucky = df.format(bleedChanceF + bleedChanceF * 0.3333D);
|
||||
|
||||
//Counter Attack
|
||||
if (skillValue >= counterMaxLevel) counterAttackChanceF = counterChanceMax;
|
||||
else counterAttackChanceF = (float) (((double) counterChanceMax / (double) counterMaxLevel) * skillValue);
|
||||
counterAttackChance = df.format(counterAttackChanceF);
|
||||
@ -66,6 +87,7 @@ public class SwordsCommand extends SkillCommand {
|
||||
canCounter = Permissions.counterAttack(player);
|
||||
canSerratedStrike = Permissions.serratedStrikes(player);
|
||||
lucky = Permissions.luckySwords(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -118,7 +140,10 @@ public class SwordsCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canSerratedStrike) {
|
||||
player.sendMessage(LocaleLoader.getString("Swords.SS.Length", new Object[] { serratedStrikesLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Swords.SS.Length", new Object[] { serratedStrikesLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { serratedStrikesLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Swords.SS.Length", new Object[] { serratedStrikesLength }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import com.gmail.nossr50.util.Permissions;
|
||||
public class UnarmedCommand extends SkillCommand {
|
||||
AdvancedConfig advancedConfig = AdvancedConfig.getInstance();
|
||||
private String berserkLength;
|
||||
private String berserkLengthEndurance;
|
||||
private String deflectChance;
|
||||
private String deflectChanceLucky;
|
||||
private String disarmChance;
|
||||
@ -32,6 +33,7 @@ public class UnarmedCommand extends SkillCommand {
|
||||
private boolean canBonusDamage;
|
||||
private boolean canDeflect;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public UnarmedCommand() {
|
||||
super(SkillType.UNARMED);
|
||||
@ -42,20 +44,40 @@ public class UnarmedCommand extends SkillCommand {
|
||||
DecimalFormat df = new DecimalFormat("0.0");
|
||||
float disarmChanceF;
|
||||
float deflectChanceF;
|
||||
berserkLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
//Berserk
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
berserkLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.UNARMED.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
berserkLengthEndurance = String.valueOf(length);
|
||||
|
||||
//Disarm
|
||||
if (skillValue >= disarmMaxLevel) disarmChanceF = disarmChanceMax;
|
||||
else disarmChanceF = (float) (((double) disarmChanceMax / (double) disarmMaxLevel) * skillValue);
|
||||
disarmChance = df.format(disarmChanceF);
|
||||
if (disarmChanceF + disarmChanceF * 0.3333D >= 100D) disarmChanceLucky = df.format(100D);
|
||||
else disarmChanceLucky = df.format(disarmChanceF + disarmChanceF * 0.3333D);
|
||||
|
||||
//Deflect
|
||||
if (skillValue >= deflectMaxLevel) deflectChanceF = deflectChanceMax;
|
||||
else deflectChanceF = (float) (((double) deflectChanceMax / (double) deflectMaxLevel) * skillValue);
|
||||
deflectChance = df.format(deflectChanceF);
|
||||
if (deflectChanceF + deflectChanceF * 0.3333D >= 100D) deflectChanceLucky = df.format(100D);
|
||||
else deflectChanceLucky = df.format(deflectChanceF + deflectChanceF * 0.3333D);
|
||||
|
||||
//Iron Arm
|
||||
if (skillValue >= 250) ironArmBonus = String.valueOf(ironArmMaxBonus);
|
||||
else ironArmBonus = String.valueOf(3 + ((double) skillValue / (double) ironArmIncreaseLevel));
|
||||
}
|
||||
@ -67,6 +89,7 @@ public class UnarmedCommand extends SkillCommand {
|
||||
canDeflect = Permissions.deflect(player);
|
||||
canDisarm = Permissions.disarm(player);
|
||||
lucky = Permissions.luckyUnarmed(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -124,7 +147,10 @@ public class UnarmedCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canBerserk) {
|
||||
player.sendMessage(LocaleLoader.getString("Unarmed.Ability.Berserk.Length", new Object[] { berserkLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Unarmed.Ability.Berserk.Length", new Object[] { berserkLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { berserkLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Unarmed.Ability.Berserk.Length", new Object[] { berserkLength }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import com.gmail.nossr50.util.Permissions;
|
||||
public class WoodcuttingCommand extends SkillCommand {
|
||||
AdvancedConfig advancedConfig = AdvancedConfig.getInstance();
|
||||
private String treeFellerLength;
|
||||
private String treeFellerLengthEndurance;
|
||||
private String doubleDropChance;
|
||||
private String doubleDropChanceLucky;
|
||||
|
||||
@ -27,6 +28,7 @@ public class WoodcuttingCommand extends SkillCommand {
|
||||
private boolean canDoubleDrop;
|
||||
private boolean doubleDropsDisabled;
|
||||
private boolean lucky;
|
||||
private boolean endurance;
|
||||
|
||||
public WoodcuttingCommand() {
|
||||
super(SkillType.WOODCUTTING);
|
||||
@ -37,7 +39,26 @@ public class WoodcuttingCommand extends SkillCommand {
|
||||
DecimalFormat df = new DecimalFormat("0.0");
|
||||
float doubleDropChanceF;
|
||||
|
||||
treeFellerLength = String.valueOf(2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel));
|
||||
//Tree Feller
|
||||
int length = 2 + (int) ((double) skillValue / (double) abilityLengthIncreaseLevel);
|
||||
treeFellerLength = String.valueOf(length);
|
||||
|
||||
if (Permissions.activationTwelve(player)) {
|
||||
length = length + 12;
|
||||
}
|
||||
else if (Permissions.activationEight(player)) {
|
||||
length = length + 8;
|
||||
}
|
||||
else if (Permissions.activationFour(player)) {
|
||||
length = length + 4;
|
||||
}
|
||||
int maxLength = SkillType.WOODCUTTING.getAbility().getMaxTicks();
|
||||
if (maxLength != 0 && length > maxLength) {
|
||||
length = maxLength;
|
||||
}
|
||||
treeFellerLengthEndurance = String.valueOf(length);
|
||||
|
||||
//Double Drops
|
||||
if (skillValue >= doubleDropsMaxLevel) doubleDropChanceF = (float) (doubleDropsMaxBonus);
|
||||
else doubleDropChanceF = (float) ((doubleDropsMaxBonus / doubleDropsMaxLevel) * skillValue);
|
||||
doubleDropChance = df.format(doubleDropChanceF);
|
||||
@ -54,6 +75,7 @@ public class WoodcuttingCommand extends SkillCommand {
|
||||
canLeafBlow = Permissions.leafBlower(player);
|
||||
doubleDropsDisabled = configInstance.woodcuttingDoubleDropsDisabled();
|
||||
lucky = Permissions.luckyWoodcutting(player);
|
||||
endurance = Permissions.activationTwelve(player) || Permissions.activationEight(player) || Permissions.activationFour(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -106,7 +128,10 @@ public class WoodcuttingCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canTreeFell) {
|
||||
player.sendMessage(LocaleLoader.getString("Woodcutting.Ability.Length", new Object[] { treeFellerLength }));
|
||||
if (endurance)
|
||||
player.sendMessage(LocaleLoader.getString("Woodcutting.Ability.Length", new Object[] { treeFellerLength }) + LocaleLoader.getString("Perks.activationtime.bonus", new Object[] { treeFellerLengthEndurance }));
|
||||
else
|
||||
player.sendMessage(LocaleLoader.getString("Woodcutting.Ability.Length", new Object[] { treeFellerLength }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -466,3 +466,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -530,4 +530,5 @@ Perks.lucky.bonus=[[GOLD]] ({0}% mit Gl\u00FCck-Perk)
|
||||
Perks.cooldowns.name=Schnelle Wiederherstellung
|
||||
Perks.cooldowns.desc=Verk\u00FCrzt die Cooldownzeit um {0}.
|
||||
Perks.activationtime.name=Ausdauer
|
||||
Perks.activationtime.desc=Erh\u00F6ht die Aktivierungszeit von F\u00E4higkeiten um {0} Sekunden.
|
||||
Perks.activationtime.desc=Erh\u00F6ht die Aktivierungszeit von F\u00E4higkeiten um {0} Sekunden.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
@ -540,3 +540,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Recupero Rapido
|
||||
Perks.cooldowns.desc=Riduce la durata del raffreddamento di {0}.
|
||||
Perks.activationtime.name=Resistenza
|
||||
Perks.activationtime.desc=Incrementa il tempo di attivazione dell\'abilit\u00e0 di {0} secondi.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
@ -469,3 +469,4 @@ Perks.cooldowns.name=Fast Recovery
|
||||
Perks.cooldowns.desc=Cuts cooldown duration by {0}.
|
||||
Perks.activationtime.name=Endurance
|
||||
Perks.activationtime.desc=Increases ability activation time by {0} seconds.
|
||||
Perks.activationtime.bonus=[[GOLD]] ({0}s with Endurance Perk)
|
||||
|
Loading…
Reference in New Issue
Block a user