Tile - YEntity - Damage – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==== instigator ==== | ==== instigator ==== | ||
Instigator causing the damage (optional) | |||
==== amount ==== | ==== amount ==== | ||
Amount of damage | |||
==== type ==== | ==== type ==== | ||
Damage type | |||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
''' | Will '''reduce''' hitpoints of target entity by given amount. | ||
=== Notes === | |||
* Damage '''type''' will govern how the damage will be '''reduced''' by target resistances. | |||
* Pure damage type cannot be resisted. | |||
Revision as of 15:30, 30 March 2022
Damage(Entity, Instigator, Amount, Type)
damage(instigator: YEntity, amount: number, type: YDamageType): void;
Parameters
instigator
Instigator causing the damage (optional)
amount
Amount of damage
type
Damage type
Availability
Description
Will reduce hitpoints of target entity by given amount.
Notes
- Damage type will govern how the damage will be reduced by target resistances.
- Pure damage type cannot be resisted.