Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom condition effects to support the basic statuses the system has #68

Merged
merged 14 commits into from
May 21, 2024

Conversation

kaelad02
Copy link
Owner

When v3.0 dropped, it added the basic D&D conditions and other statuses into the system, finally. Initial support was done in AR v3.4.0 by adding Midi-flags to the status effects. That works when applying the basic conditions but doesn't support other active effects that use the statuses property (like some spells/features in the SRD do). This changes the implementation to remove those flags and directly handle advantage/disadvantage based on those statuses.

For example, if the target of an attack is under the Sleep spell, this will now show Sleep as the source of advantage instead of Unconscious.
Added a helper function to the accumulator, fromConditions, to help with this. Also uses the similar strategy to get the condition effect keys that we do with Midi's keys
also fix bugs when there isn't a target
it is functionally the same, so just reuse the existing setting instead of making a new one
@kaelad02 kaelad02 merged commit a49c3bd into main May 21, 2024
1 check passed
@kaelad02 kaelad02 deleted the conditionEffects-style branch May 21, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant