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

Make enchantment influence dps shown in item #77687

Merged

Conversation

GuardianDll
Copy link
Member

Summary

None

Purpose of change

Item DPS field is a field that already reflect you using this weapon against different enemies; it is influenced by both item properties, and character stats and effects: strength, pain and similar
There is little reason to omit possible enchantments if they are presented

Describe the solution

Add modify_damage_dealt_with_enchantments() to dps calculations in UI

Testing

Default character with skill 5
image
Default character with skill 5, and 1000 additional bash damage added
image

Additional context

once #77662 will be merged, someone need to run across all melee enchantments, and if it's an item, replace said enchantment with damage, specified in item definition (unless it utilizes math or similar properties, it would be tricky then)

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 8, 2024
@Maleclypse Maleclypse merged commit 09f30df into CleverRaven:master Nov 9, 2024
22 of 28 checks passed
@GuardianDll GuardianDll deleted the enchantment_shows_in_dps branch November 9, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants