Allow slight configuration of Coat of Arms conversion
Gives modpacks control while still retaining a bit of balance.
This commit is contained in:
parent
b8079bb509
commit
3920e0926f
3 changed files with 4 additions and 2 deletions
|
@ -81,7 +81,7 @@ public class EventHandler
|
|||
|
||||
boolean shouldSyphon = pack.getStoredLP(player.getCurrentArmor(chestIndex)) < pack.CAPACITY;
|
||||
float damageDone = event.entityLiving.getHealth() < event.ammount ? event.ammount - event.entityLiving.getHealth() : event.ammount;
|
||||
int totalLP = Math.round(damageDone * pack.CONVERSION);
|
||||
int totalLP = Math.round(damageDone * ConfigHandler.sacrificialPackConversion);
|
||||
|
||||
if (shouldSyphon)
|
||||
pack.addLP(player.getCurrentArmor(chestIndex), totalLP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue