Skip to content

Commit

Permalink
doc(damage): integrate review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert authored Apr 30, 2023
1 parent 6ab559f commit 07fe027
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/damage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Damage refers to the reduction of health points caused by the affected entity it
Self-inflicted causes include, for instance, falling, drowning, or poison damage.
Damage inflicted by a third party typically involves some form of hitting the affected entity.

The `DamageSystem` handles damage dealt to entities with health.
The `BlockDamageAuthoritySystem` enables blocks to sustain some damage before getting destroyed.
The `DamageEffectAuthoritySystem` produces block particle effect in the event of damage.
* The `DamageSystem` handles damage dealt to entities with health.
* The `BlockDamageAuthoritySystem` enables blocks to sustain some damage before getting destroyed.
* The `DamageEffectAuthoritySystem` produces block particle effect in the event of damage.

Send a `DoDamageEvent` to a specific entity to deal damage to it.

Expand All @@ -20,10 +20,10 @@ Sounds should be referenced as `[engine|<module>]:<soundFileName>` for sound fil
Event chain:
* `DoDamageEvent`
* `BeforeDamageEvent`
* Entity damaged, health component saved
* _Entity damaged, health component saved_
* `OnDamagedEvent`

Commands:
* `damageResist(damagetype,percentage)`: gives resistance to damage (damagetype = all for total resistance).
* `damageImmune(damagetype)`: percentage = 100 by default.
* `checkResistance()`: gives list of active resistance values
* `checkResistance()`: gives list of active resistance values

0 comments on commit 07fe027

Please sign in to comment.