From 4a3f34efe13a80af8a24a7921c0b4a133b390354 Mon Sep 17 00:00:00 2001 From: Emagi Date: Sat, 24 May 2025 14:45:58 -0400 Subject: [PATCH] Create ward_value_types.md --- docs/data_types/ward_value_types.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/data_types/ward_value_types.md diff --git a/docs/data_types/ward_value_types.md b/docs/data_types/ward_value_types.md new file mode 100644 index 0000000..1c2a23b --- /dev/null +++ b/docs/data_types/ward_value_types.md @@ -0,0 +1,17 @@ +# Ward Value Types + +Each key is supplied to the Lua interface via `SetInt32Value` (integer) or `SetBooleanValue` (boolean). + +| Key String | Lua Value Type | Description (best guess) | +|----------------------------------|----------------|---------------------------------------------------------------------------------| +| damageleft | int32 | Remaining ward hit-points still able to absorb damage. | +| basedamage | int32 | Original (maximum) ward value before any damage was applied. | +| keepward | boolean | If `true`, the ward persists after reaching zero until its duration expires. | +| wardtype | int32 | Enum ID designating the ward’s category (physical, magical, elemental, etc.). | +| dmgabsorptionpct | int32 | Percentage of incoming damage that the ward can absorb. | +| dmgabsorptionmaxhealthpct | int32 | Maximum damage absorbed per hit, expressed as a percentage of caster’s health. | +| redirectdamagepercent | int32 | Percentage of damage redirected from target to ward bearer (or another target). | +| lastredirectdamage | int32 | Most recent damage amount redirected by the ward. | +| lastabsorbeddamage | int32 | Most recent damage amount absorbed by the ward. | +| hitcount | int32 | Number of hits the ward has absorbed so far. | +| maxhitcount | int32 | Maximum number of hits the ward can absorb before expiring. |