Пример #1
0
 public override void ModifyDamageValue(ref int damage, HealthComponent healthComponent)
 {
     if (healthComponent.IsWeakAgainst(GetType()))
     {
         damage *= 2;
     }
     else if (healthComponent.IsStrongAgainst(GetType()))
     {
         damage = Mathf.RoundToInt(damage * 0.5f);
     }
 }
Пример #2
0
 public override void ModifyHealingValue(ref int healing, HealthComponent healthComponent)
 {
     if (healthComponent.IsWeakAgainst(GetType()))
     {
         healing = Mathf.RoundToInt(healing * 0.5f);
     }
     else if (healthComponent.IsStrongAgainst(GetType()))
     {
         healing *= 2;
     }
 }