Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [PropertyCalculator(eProperty.StunDuration)]
- public class StunDurationPercentCalculator : PropertyCalculator
- {
- public override int CalcValue(GameLiving living, eProperty property)
- {
- int percent = 100
- - living.BaseBuffBonusCategory[(int)property] // buff reduce the duration
- + living.DebuffCategory[(int)property]
- - living.ItemBonus[(int)property]
- - living.AbilityBonus[(int)property];
- if (living.HasAbility(Abilities.Stoicism))
- percent -= 25;
- return Math.Max(1, percent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement