Esempio n. 1
0
 public EiDamage ConfigHealing(EiCombatData data, EiHealth target)
 {
     data.Convert();
     this.damageType = data.damageType;
     this.data       = data;
     this.target     = target;
     this.damage     = data.flatAmount + target.CurrentHealth * data.currentHealthPercentage + target.MaxHealth * data.maxHealthPercentage;
     return(this);
 }
Esempio n. 2
0
 protected override void AttachComponents()
 {
     healthComponent = GetComponent <EiHealth> ();
     base.AttachComponents();
 }
Esempio n. 3
0
 protected override void AttachComponents()
 {
     damageTarget = GetComponentInParent <EiHealth> ();
     base.AttachComponents();
 }
Esempio n. 4
0
 public EiDamage ConfigDamage(EiCombatData data, EiHealth target)
 {
     this.target = target;
     this.damage = data.flatAmount + target.CurrentHealth * data.currentHealthPercentage + target.MaxHealth * data.maxHealthPercentage;
     return(ConfigDamage(data));
 }
Esempio n. 5
0
 protected override void AttachComponents()
 {
     targetRootToDestroy = this.transform;
     healthComponent     = GetComponent <EiHealth> ();
     base.AttachComponents();
 }