Dungeons Gear

Dungeons Gear

8M Downloads

SuperCharge enchant 0 damage level 4+

xThaySan opened this issue ยท 1 comments

commented
src/main/java/com/infamous/dungeons_gear/enchantments/ranged/SuperchargeEnchantment.java

This part of the code makes the damage zero when the enchantment is level 4 or higher :

double damageModifier = 0;
if (superchargeLevel == 1) damageModifier = 1.2D;
if (superchargeLevel == 2) damageModifier = 1.4D;
if (superchargeLevel == 3) damageModifier = 1.6D;
arrow.setBaseDamage(originalDamage * damageModifier);

It may need to be modified to something like this:

double damageModifier = 1.0D + 0.2D * superchargeLevel;
arrow.setBaseDamage(originalDamage * damageModifier);
commented

Duplicate of #264. Slated to be fixed for 1.19.2 only.