Example #1
0
 public DamageOrHealEffect(decimal damageFactor, decimal healFactor, SecondaryAttributeTypes attribute, SchoolTypes school)
 {
     DamageFactor = damageFactor;
     HealFactor   = healFactor;
     Attribute    = attribute;
     School       = school;
 }
Example #2
0
 public DotAbilityEffect(decimal factor, SecondaryAttributeTypes attribute, SchoolTypes school, int tickDelay)
 {
     Factor    = factor;
     Attribute = attribute;
     School    = school;
     TickDelay = tickDelay;
 }
Example #3
0
 public DamageAbilityEffect(decimal factor, SecondaryAttributeTypes attribute, SchoolTypes school)
 {
     Factor    = factor;
     Attribute = attribute;
     School    = school;
 }
Example #4
0
 public HotAbilityEffect(decimal factor, SecondaryAttributeTypes attribute, int tickDelay)
 {
     Factor    = factor;
     Attribute = attribute;
     TickDelay = tickDelay;
 }
Example #5
0
 public HealSourceAbilityEffect(decimal factor, SecondaryAttributeTypes attribute)
 {
     Factor    = factor;
     Attribute = attribute;
 }
Example #6
0
 protected int ComputeAttributeBasedAmount(ICharacter source, SecondaryAttributeTypes attribute, decimal factor)
 {
     return((int)Math.Ceiling(factor * source[attribute] / 100.0m));
 }