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

dk-rune-costs #4003

Merged
merged 1 commit into from
Nov 5, 2023
Merged

dk-rune-costs #4003

merged 1 commit into from
Nov 5, 2023

Conversation

vigo2
Copy link
Contributor

@vigo2 vigo2 commented Nov 3, 2023

[dk] "doubled" RuneCost sizes so runes don't overflow in tests (e.g. a UUFFBB spell could be optimized to more than 3 death runes instead)

[dk] death runes are now spent preferring their original rune type, before falling back to the "generic" unholy -> frost -> blood order

The original rune types are determined by subtracting the optimized rune cost from the spell's default rune cost. For DKs, the latter is never changed, so this is fine. Alternatively, the optimized rune cost could additionally store those "blood-death", "frost-death", and "unholy-death" rune counts.

The used scheme has been tested to yield the same results as looking for "blood-death" runes within blood slots only, then "frost-death" runes within frost slots only, then "unholy-death" runes within unholy slots only, and finally looking for any remaining death runes in the "generic" order. The used scheme is very slightly faster, and requires less code changes.

…a UUFFBB spell could be optimized to more than 3 death runes instead)

[dk] death runes are now spent preferring their original rune type, before falling back to the "generic" unholy -> frost -> blood order
@vigo2 vigo2 requested a review from rosenrusinov November 3, 2023 23:26
@vigo2 vigo2 merged commit 10ac32b into wowsims:master Nov 5, 2023
2 checks passed
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