Пример #1
0
    public void TakeDamage(int baseDamage, RhetoricTypeChart.Type type)
    {
        float advantageMultiplier = RhetoricTypeChart.GetMultiplier(MyRhetoricType, type);

        int damageTaken = (int)(baseDamage * advantageMultiplier);

        hp -= damageTaken;
        onDamageTaken.Invoke(this, damageTaken);
        HealthBar.value = hp / 10;
        healthText.text = hp + "/10";
    }
Пример #2
0
 public override void Apply(ICharacter caster, ICharacter target, RhetoricTypeChart.Type abilityType)
 {
     target.TakeDamage(power, abilityType);
 }
Пример #3
0
 public abstract void Apply(ICharacter caster, ICharacter target, RhetoricTypeChart.Type abilityType);