feat: Add configurable condenser amount multiplier
- Add condenserAmountMultiplier setting with default value 1.0
This commit is contained in:
@@ -241,7 +241,9 @@ public class ItemWand extends Item implements IWorkbenchItem, ISpellCastingItem,
|
||||
// Decrements wand damage (increases mana) every 1.5 seconds if it has a condenser upgrade
|
||||
if(!world.isRemote && !this.isManaFull(stack) && world.getTotalWorldTime() % Constants.CONDENSER_TICK_INTERVAL == 0){
|
||||
// If the upgrade level is 0, this does nothing anyway.
|
||||
this.rechargeMana(stack, WandHelper.getUpgradeLevel(stack, WizardryItems.condenser_upgrade));
|
||||
int baseAmount = WandHelper.getUpgradeLevel(stack, WizardryItems.condenser_upgrade);
|
||||
int amount = (int)(baseAmount * Wizardry.settings.condenserAmountMultiplier);
|
||||
this.rechargeMana(stack, amount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user