Skip to content

Conversation

Andrettin
Copy link
Contributor

Unique monster IDs are stored in a uint8_t, which means that we should be able to have up to 254 unique monsters (ID 255 is reserved for representing the monster having no unique monster ID). However, because two lines in the code cast the unique monster ID to an int8_t, we get errors for unique monsters with ID beyond 127.

This PR fixes that, by changing those casts, so that we properly support unique monster indices from 127-254, almost doubling the amount of unique monster indices available for modding.

@glebm glebm enabled auto-merge (rebase) September 10, 2025 13:06
@glebm glebm merged commit d246223 into diasurgical:master Sep 10, 2025
24 of 25 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.

2 participants