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"; }
public override void Apply(ICharacter caster, ICharacter target, RhetoricTypeChart.Type abilityType) { target.TakeDamage(power, abilityType); }
public abstract void Apply(ICharacter caster, ICharacter target, RhetoricTypeChart.Type abilityType);