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

Resolve inconsistencies in clan_cats.json #3059

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

rustykitty
Copy link
Contributor

@rustykitty rustykitty commented Nov 29, 2024

About The Pull Request

  1. Tints use null instead of "none" to indicate no tint.
  2. Facets can be null and facets will be regenerated.
  3. pattern (and cat.pelt.pattern) renamed to tortie_marking (cat.pelt.tortiemarking)

I didn't do one of the requested items, making sure the capitalization is consistent, because I'm not sure how all the sprite stuff works.

Linked Issues

Fixes #3039

Proof of Testing

I loaded up one of my medium-size Clans from stable (v0.11.2). Unless otherwise stated, first screenshot is before saving clan and second screenshot is after saving clan.

null instead of none to indicate no tint:
Screenshot 2024-11-29 at 8 26 44 AM
Screenshot 2024-11-29 at 8 28 38 AM

Allowing facets to be null:
Screenshot 2024-11-26 at 9 02 04 PM
Screenshot 2024-11-26 at 9 02 11 PM

Pattern renamed to tortie marking:
image
image

Changelog/Credits

@rustykitty rustykitty marked this pull request as ready for review December 19, 2024 15:04
Copy link
Collaborator

@j-gynn j-gynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two little things (sorry for the delay on getting this reviewed!).

scripts/clan.py Outdated
@@ -634,13 +634,13 @@ def load_clan_txt(self):
members = sections[4].split(",")
other_clans = []
if len(general) == 9:
if general[3] == "None":
if general[3] == None or general[3] == "None":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if general[3] == None or general[3] == "None":
if general[3] is None or general[3] == "None":

It's more Pythonic to say if [variable] is None, or alternatively, if not [variable]. Please make this change wherever relevant

elif self.white_patches in ["SEPIAPOINT", "MINKPOINT", "SEALPOINT"]:
self.white_patches_tint = "none"

elif self.white_patches in ['SEPIAPOINT', 'MINKPOINT', 'SEALPOINT']:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so hilariously minor but since I've asked for other changes, could these single quotes be replaced with double quotes?

@rustykitty rustykitty requested a review from j-gynn January 13, 2025 05:10
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.

[ENHANCEMENT] Inconsistencies in clan_cat.json
2 participants