Declaration
func DealDamage(target entity<Combatable>, attacker entity<Combatable>, type DamageType, damage int)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Target | FightingEntity | Damaged gaming entity |
| Attacker | FightingEntity | Game entity that deal damage |
| Type | DamageType | Type of damage |
| Damage | Int | Amount of damage |