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

Fix new charcodes #110

Merged
merged 2 commits into from
Aug 9, 2023
Merged

Fix new charcodes #110

merged 2 commits into from
Aug 9, 2023

Conversation

syntaxaire
Copy link
Member

This PR fixes the bad ordering of attribute decodes and adds tests for the decoding of attributes, bonuses. The tests also ensure that a text sheet can be rendered from a character code. The character code tests are extensible by adding more build codes to the list; the tests will be run against each character code separately.

Originally, attributes were serialized in "game order" (Strength first).
At some point the game began serializing these in alphabetical order
instead. Since we depended on game order, this swapped attributes around
in the resulting tables. Decoding is now based on attribute name rather
than any expected order.
@syntaxaire syntaxaire requested a review from a team as a code owner August 7, 2023 17:20
@Wreckstation Wreckstation merged commit 25d3876 into main Aug 9, 2023
1 check passed
@Wreckstation Wreckstation deleted the fix-new-charcodes branch August 9, 2023 01:16
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.

2 participants