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

[#3617] Add enchantment effect for modifying damage types #4913

Open
wants to merge 2 commits into
base: 4.2.x
Choose a base branch
from

Conversation

arbron
Copy link
Collaborator

@arbron arbron commented Dec 20, 2024

Adds the ability for enchantments to replace or add to the damage types for all parts on an activity. This is done using an active effect targeting system.damage.types. Using the OVERRIDE mode will replace all existing damage types with the specified type, while ADD will introduce a new damage type to the existing types.

Closes #3617

Adds the ability for enchantments to replace or add to the damage
types for all parts on an activity. This is done using an active
effect targeting `system.damage.types`. Using the `OVERRIDE` mode
will replace all existing damage types with the specified type,
while `ADD` will introduce a new damage type to the existing
types.

Closes #3617
@arbron arbron added this to the D&D5E 4.2.0 milestone Dec 20, 2024
@arbron arbron self-assigned this Dec 20, 2024
@arbron arbron mentioned this pull request Jan 9, 2025
19 tasks
@arbron arbron requested a review from Fyorl January 17, 2025 19:10
Copy link
Contributor

@Fyorl Fyorl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some changes here which seem to allow the activity sheet to show various parts of consumption/recovery/damage that have been added via enchantment, but I'm not sure how sustainable this approach is.

What if an enchantment modifies something that's not in a parts collection? We have the same problem as with AEs, no? The field can't show both the source and modified versions simultaneously.

Do we add an edit lock to activity sheets as well? Or we could instead consider the activity sheet an edit-only sheet, and enchantment modifications show up only in prepared views of the activity, such as Actor sheets? Or do we restrict enchantment modifications only to various parts collections of an activity?

@arbron
Copy link
Collaborator Author

arbron commented Jan 20, 2025

There are some changes here which seem to allow the activity sheet to show various parts of consumption/recovery/damage that have been added via enchantment, but I'm not sure how sustainable this approach is.

What if an enchantment modifies something that's not in a parts collection? We have the same problem as with AEs, no? The field can't show both the source and modified versions simultaneously.

Do we add an edit lock to activity sheets as well? Or we could instead consider the activity sheet an edit-only sheet, and enchantment modifications show up only in prepared views of the activity, such as Actor sheets? Or do we restrict enchantment modifications only to various parts collections of an activity?

A big issue I was trying to resolve here was what to do with damage parts, because I want to show the original version of any part that is changed by enchantment, but I also need to show the base weapon damage part which isn't in the source data.

Perhaps we can treat them as edit-only sheets for now and just have some special handling for damage parts to display enchantment-added parts as locked.

@arbron arbron requested a review from Fyorl January 20, 2025 19:39
@arbron arbron force-pushed the enchantment/damage-types branch from 1fd3fff to 1b0834a Compare January 20, 2025 23:24
@arbron arbron requested a review from Fyorl January 20, 2025 23:24
@arbron arbron modified the milestones: D&D5E 4.2.0, D&D5E 4.3.0 Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Enchantments to change only damage types
2 participants