Skip to content

Conversation

@krbz999
Copy link
Contributor

@krbz999 krbz999 commented Dec 17, 2025

Stores a numeric value in CharacterData/NPCData#attributes.bloodiedThreshold during the base data prep cycle, grabbing the initial value from the CONFIG, which has been adjusted to be 50 instead of 0.5 for simplicity.

Adjusted to compare HP percentage using attributes.hp.pct instead of a calculation in the updateBloodied method using hp.effectiveMax (unsure why this was the way it was).

To allow for the edge case of "bloodied when missing any hit points" there's a comparison to hp.pct === 100 such that an effect can be applied with system.attributes.bloodiedThreshold | OVERRIDE | 100 to satisfy this requirement.

Closes #6495.

@Fyorl Fyorl added api priority: medium strategic Requires sign-off from a core Foundry VTT developer before merge. labels Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api priority: medium strategic Requires sign-off from a core Foundry VTT developer before merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow the threshhold for being "Bloodied" to be set via an active effect or somehow changed.

2 participants