Example #1
0
        public virtual void TD_GETDAMAGE_WITHEVASION(float damage, TD_CHARACTER Origin)
        {
            int r = Random.Range(0, 100);

            if (r < Evasion)
            {
                HP -= 0f;
            }
            else
            {
                HP -= (damage - Armor);
            }
        }
Example #2
0
 public virtual void TD_GETDAMAGEOVERTIME(float damage, TD_CHARACTER Origin)
 {
     HP -= damage * Time.deltaTime;
 }
Example #3
0
 public virtual void TD_GETPUREDAMAGE(float damage, TD_CHARACTER Origin)
 {
     HP -= damage;
 }
Example #4
0
 public virtual void TD_GETDAMAGE(float damage, TD_CHARACTER Origin)
 {
     HP -= (damage - Armor);
 }