Skip to main content

BasicDamageValue.GetDamageAmount

Declaration#

public virtual float GetDamageAmount(IDamageable target, IDamageSource source, bool critical)

Parameters#

NameDescription
targetTarget being attacked
sourceObject performing attack
criticalPerform critical damage

Description#

Get the amount of damage to apply

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{    public void ExampleMethod(BasicDamageValue target, IDamageable damageable, IDamageSource source)    {        float result = target.GetDamageAmount(damageable, source, false);    }}