Weapon trait bonus calculation should be capped at 78% reduction.

This commit is contained in:
MobiusDevelopment 2020-12-27 13:14:06 +00:00
parent 786fafe0ff
commit 90751f81cd
17 changed files with 17 additions and 17 deletions

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1340,7 +1340,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1340,7 +1340,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1340,7 +1340,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1339,7 +1339,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)

View File

@ -1340,7 +1340,7 @@ public class Formulas
public static double calcWeaponTraitBonus(Creature attacker, Creature target) 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) public static double calcAttackTraitBonus(Creature attacker, Creature target)