mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Update Smelting to alphabetical order
This commit is contained in:
parent
f68ecd3214
commit
c146384227
@ -37,19 +37,19 @@ public class SmeltingCommand extends SkillCommand {
|
|||||||
burnTimeModifier = decimal.format(1 + ((skillValue / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier));
|
burnTimeModifier = decimal.format(1 + ((skillValue / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier));
|
||||||
}
|
}
|
||||||
|
|
||||||
// SECOND SMELT
|
|
||||||
if (canSecondSmelt) {
|
|
||||||
String[] secondSmeltStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.SMELTING_SECOND_SMELT, isLucky);
|
|
||||||
secondSmeltChance = secondSmeltStrings[0];
|
|
||||||
secondSmeltChanceLucky = secondSmeltStrings[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
// FLUX MINING
|
// FLUX MINING
|
||||||
if (canFluxMine) {
|
if (canFluxMine) {
|
||||||
String[] fluxMiningStrings = calculateAbilityDisplayValues(Smelting.fluxMiningChance, isLucky);
|
String[] fluxMiningStrings = calculateAbilityDisplayValues(Smelting.fluxMiningChance, isLucky);
|
||||||
fluxMiningChance = fluxMiningStrings[0];
|
fluxMiningChance = fluxMiningStrings[0];
|
||||||
fluxMiningChanceLucky = fluxMiningStrings[1];
|
fluxMiningChanceLucky = fluxMiningStrings[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SECOND SMELT
|
||||||
|
if (canSecondSmelt) {
|
||||||
|
String[] secondSmeltStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.SMELTING_SECOND_SMELT, isLucky);
|
||||||
|
secondSmeltChance = secondSmeltStrings[0];
|
||||||
|
secondSmeltChanceLucky = secondSmeltStrings[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -64,6 +64,10 @@ public class SmeltingCommand extends SkillCommand {
|
|||||||
protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {
|
protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {
|
||||||
List<String> messages = new ArrayList<String>();
|
List<String> messages = new ArrayList<String>();
|
||||||
|
|
||||||
|
if (canFluxMine) {
|
||||||
|
messages.add(LocaleLoader.getString("Smelting.Ability.FluxMining", fluxMiningChance) + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", fluxMiningChanceLucky) : ""));
|
||||||
|
}
|
||||||
|
|
||||||
if (canFuelEfficiency) {
|
if (canFuelEfficiency) {
|
||||||
messages.add(LocaleLoader.getString("Smelting.Ability.FuelEfficiency", burnTimeModifier));
|
messages.add(LocaleLoader.getString("Smelting.Ability.FuelEfficiency", burnTimeModifier));
|
||||||
}
|
}
|
||||||
@ -76,10 +80,6 @@ public class SmeltingCommand extends SkillCommand {
|
|||||||
messages.add(LocaleLoader.getString("Smelting.Ability.VanillaXPBoost", UserManager.getPlayer(player).getSmeltingManager().getVanillaXpMultiplier()));
|
messages.add(LocaleLoader.getString("Smelting.Ability.VanillaXPBoost", UserManager.getPlayer(player).getSmeltingManager().getVanillaXpMultiplier()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canFluxMine) {
|
|
||||||
messages.add(LocaleLoader.getString("Smelting.Ability.FluxMining", fluxMiningChance) + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", fluxMiningChanceLucky) : ""));
|
|
||||||
}
|
|
||||||
|
|
||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user