Weapon trait bonus calculation should be capped at 78% reduction.
This commit is contained in:
parent
786fafe0ff
commit
90751f81cd
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1340,7 +1340,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1340,7 +1340,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1340,7 +1340,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1339,7 +1339,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
@ -1340,7 +1340,7 @@ public class Formulas
|
||||
|
||||
public static double calcWeaponTraitBonus(Creature attacker, Creature target)
|
||||
{
|
||||
return Math.max(0.78, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
return Math.max(0.22, 1.0 - target.getStat().getDefenceTrait(attacker.getAttackType().getTraitType()));
|
||||
}
|
||||
|
||||
public static double calcAttackTraitBonus(Creature attacker, Creature target)
|
||||
|
Loading…
Reference in New Issue
Block a user