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

Allow categorized sprite names to not be prefixed. #9616

Merged
merged 6 commits into from
Mar 14, 2024

Conversation

GlennFolker
Copy link
Contributor

Many of the sprite generations have (arguably cursed) category prefixes, such as block- (e.g. block-contentname-full, unit-contentname-ui). This completely breaks in mods however, especially ones with pre-generated sprites as the region name will be something like modname-block-modname-contentname-full.

This PR makes it so that if the game detects that the file name is prefixed with exactly one word, followed by a hyphen and the mod's internal name and another hyphen, it will not be prefixed.

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

@Anuken Anuken merged commit 3f46080 into Anuken:master Mar 14, 2024
1 check passed
@GlennFolker GlennFolker deleted the category branch March 14, 2024 17:12
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