From 4de57ea5d2c39fb2ee9c01f77a863f7be3ab79a0 Mon Sep 17 00:00:00 2001 From: Jeff Hitchcock Date: Mon, 12 Feb 2024 17:08:30 -0800 Subject: [PATCH] Document dnd5e.calculateDamage hook --- wiki/Hooks.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wiki/Hooks.md b/wiki/Hooks.md index 7c8b99dab9..c7aa4577fc 100644 --- a/wiki/Hooks.md +++ b/wiki/Hooks.md @@ -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 @@ -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.