Skip to content

Commit

Permalink
Document dnd5e.calculateDamage hook
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Feb 13, 2024
1 parent 03be6c8 commit 4de57ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion wiki/Hooks.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Up to date as of 3.0.0](https://img.shields.io/static/v1?label=dnd5e&message=3.0.0&color=informational)
![Up to date as of 3.0.2](https://img.shields.io/static/v1?label=dnd5e&message=3.0.0&color=informational)

## Actor

Expand Down Expand Up @@ -52,6 +52,16 @@ Fires before damage amount is calculated for an actor. Returning `false` will pr
| damages | DamageDescription[] | Damage descriptions. |
| options | DamageApplicationOptions | Additional damage application options. |

### `dnd5e.calculateDamage`

Fires after damage values are calculated for an actor. Returning `false` will prevent damage from being applied.

| Name | Type | Description |
| ------- | ------------------------ | -------------------------------------- |
| actor | Actor5e | The actor being damaged. |
| damages | DamageDescription[] | Damage descriptions. |
| options | DamageApplicationOptions | Additional damage application options. |

### `dnd5e.preApplyDamage`

Fires before damage is applied to an actor. Returning `false` will prevent damage from being applied.
Expand Down

0 comments on commit 4de57ea

Please sign in to comment.