Initial refactor of damagetype
This commit is contained in:
1 parent
adfbf87056
commit
a29269e335
32 files changed
+447
-380
No files matched your search
@@ -306,12 +306,12 @@ public class CharacterSkill extends AbstractGameObject {
|
||||
PlayerBonuses bonus = ac.getBonuses();
|
||||
if (bonus == null)
|
||||
return atr;
|
||||
atr += bonus.getFloat(ModType.OCV, SourceType.NONE);
|
||||
float pos_Bonus = bonus.getFloatPercentPositive(ModType.OCV, SourceType.NONE);
|
||||
atr += bonus.getFloat(ModType.OCV, SourceType.None);
|
||||
float pos_Bonus = bonus.getFloatPercentPositive(ModType.OCV, SourceType.None);
|
||||
atr *= (1 + pos_Bonus);
|
||||
//rUNES will already be applied
|
||||
// atr *= (1 + ((float)bonus.getShort("rune.Attack") / 100)); //precise
|
||||
float neg_Bonus = bonus.getFloatPercentNegative(ModType.OCV, SourceType.NONE);
|
||||
float neg_Bonus = bonus.getFloatPercentNegative(ModType.OCV, SourceType.None);
|
||||
atr *= (1 + neg_Bonus);
|
||||
return atr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user