new application of zerg multiplier
This commit is contained in:
1 parent
517e64d613
commit
f7ab5347ab
17 files changed
+116
-91
No files matched your search
@@ -131,7 +131,7 @@ public class Resists {
|
||||
PlayerBonuses bonus = target.getBonuses();
|
||||
|
||||
//see if there is a fortitude
|
||||
float damageCap = bonus.getFloatPercentAll(ModType.DamageCap, SourceType.None);
|
||||
float damageCap = bonus.getFloatPercentAll(ModType.DamageCap, SourceType.None, null);
|
||||
if (damageCap == 0f || type == DamageType.Healing)
|
||||
return damage;
|
||||
|
||||
@@ -152,7 +152,7 @@ public class Resists {
|
||||
if (forts == null || !isValidDamageCapType(forts, type, exclusive))
|
||||
return damage;
|
||||
|
||||
float adjustedDamage = bonus.getFloatPercentAll(ModType.AdjustAboveDmgCap, SourceType.None);
|
||||
float adjustedDamage = bonus.getFloatPercentAll(ModType.AdjustAboveDmgCap, SourceType.None, null);
|
||||
//Adjust damage down and return new amount
|
||||
float aadc = 1 + adjustedDamage;
|
||||
return capFire * aadc;
|
||||
|
||||
Reference in new issue
Block a user