Proper shot enchant bonus.

Contributed by Iris.
This commit is contained in:
MobiusDevelopment
2021-03-30 07:42:16 +00:00
parent 59f73e6ccc
commit 53d0aa7bbd
9 changed files with 9 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {

View File

@@ -41,7 +41,7 @@ public class ShotsBonusFinalizer implements IStatFunction
final ItemInstance weapon = player.getActiveWeaponInstance(); final ItemInstance weapon = player.getActiveWeaponInstance();
if ((weapon != null) && weapon.isEnchanted()) if ((weapon != null) && weapon.isEnchanted())
{ {
baseValue += (weapon.getEnchantLevel() * 0.7) / 100; baseValue += (weapon.getEnchantLevel() * 0.3) / 100;
} }
if (player.getActiveRubyJewel() != null) if (player.getActiveRubyJewel() != null)
{ {