-
Notifications
You must be signed in to change notification settings - Fork 510
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
base: development
Are you sure you want to change the base?
Resolve inconsistencies in clan_cats.json #3059
Conversation
There was a problem hiding this 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": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
scripts/cat/pelts.py
Outdated
elif self.white_patches in ["SEPIAPOINT", "MINKPOINT", "SEALPOINT"]: | ||
self.white_patches_tint = "none" | ||
|
||
elif self.white_patches in ['SEPIAPOINT', 'MINKPOINT', 'SEALPOINT']: |
There was a problem hiding this comment.
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?
About The Pull Request
null
instead of"none"
to indicate no tint.pattern
(andcat.pelt.pattern
) renamed totortie_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 ofnone
to indicate no tint:Allowing facets to be
null
:Pattern renamed to tortie marking:
Changelog/Credits