Ejemplo n.º 1
0
 public override TakeDamageReturn TakeDamage(Skill skill, DamagePackage package, TakeDamageReturn lastReturn)
 {
     return(new TakeDamageReturn()
     {
         type = TakeDamageReturnType.NoDamage, value = 1f
     });
 }
Ejemplo n.º 2
0
 public override TakeDamageReturn TakeDamage(Skill skill, DamagePackage package, TakeDamageReturn lastReturn)
 {
     if (IsActive())
     {
         if (lastReturn.type < TakeDamageReturnType.Reflect)
         {
             return(new TakeDamageReturn()
             {
                 type = TakeDamageReturnType.Reflect, value = value
             });
         }
     }
     return(lastReturn);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// for things that cannot be expressed by the skill modifiers, just directly change the damage package
 /// </summary>
 /// <param name="package"></param>
 /// <returns></returns>
 public virtual TakeDamageReturn TakeDamage(Skill skill, DamagePackage package, TakeDamageReturn lastReturn)
 {
     return(lastReturn);
 }