Initial refactor of damagetype
This commit is contained in:
@@ -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