Use blast mining tier when calc drop multiplier

This commit is contained in:
Tom Wilkinson 2022-07-09 02:25:13 +01:00
parent 2c09a0fdb6
commit ec0eda03ef
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class MiningCommand extends SkillCommand {
MiningManager miningManager = UserManager.getPlayer(player).getMiningManager(); MiningManager miningManager = UserManager.getPlayer(player).getMiningManager();
blastMiningRank = miningManager.getBlastMiningTier(); blastMiningRank = miningManager.getBlastMiningTier();
bonusTNTDrops = miningManager.getDropMultiplier(); bonusTNTDrops = miningManager.getDropMultiplier(miningManager.getBlastMiningTier());
oreBonus = percent.format(miningManager.getOreBonus() / 30.0D); // Base received in TNT is 30% oreBonus = percent.format(miningManager.getOreBonus() / 30.0D); // Base received in TNT is 30%
// debrisReduction = percent.format(miningManager.getDebrisReduction() / 30.0D); // Base received in TNT is 30% // debrisReduction = percent.format(miningManager.getDebrisReduction() / 30.0D); // Base received in TNT is 30%
blastDamageDecrease = percent.format(miningManager.getBlastDamageModifier() / 100.0D); blastDamageDecrease = percent.format(miningManager.getBlastDamageModifier() / 100.0D);

View File

@ -166,7 +166,7 @@ public class MiningManager extends SkillManager {
float oreBonus = (float) (getOreBonus() / 100); float oreBonus = (float) (getOreBonus() / 100);
float debrisReduction = (float) (getDebrisReduction() / 100); float debrisReduction = (float) (getDebrisReduction() / 100);
int dropMultiplier = getDropMultiplier(); int dropMultiplier = getDropMultiplier(getBlastMiningTier());
float debrisYield = yield - debrisReduction; float debrisYield = yield - debrisReduction;
//Drop "debris" based on skill modifiers //Drop "debris" based on skill modifiers