-
Notifications
You must be signed in to change notification settings - Fork 504
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
[CLEANUP] Refactoring of python files inside cats, cat_relations, and clan_resoucres folders #3251
base: development
Are you sure you want to change the base?
Conversation
…oring not logical. reverting refactoring
…r_death_thought, load_thoughts
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.
See comments :)
self.thought = final_thought | ||
return "" | ||
elif game.clan.leader_lives <= 0: | ||
if game.clan.leader_lives <= 0: |
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.
I'm not sure this change won't have unanticipated problems elsewhere in the code, even if it makes sense. There was a change in event code, but I don't recall seeing anything for patrols.
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.
scripts/cat/cats.py
Outdated
and i not in life_givers | ||
and self.fetch_cat(i).status not in ["leader", "newborn"] | ||
] | ||
cats_in_starcaln_or_darkforest = game.clan.starclan_cats |
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.
I am not sure that these lists are regularly updated: to confirm, has this branch been game tested generating leader ceremonies?
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.
I have tested it by repeatedly killing my leader and promoting a new one, both for Starclan and Dark forest guides and it worked fine. Is there another way?
About The Pull Request
I have carefully gone though all .py files in the following path and tried to make the code cleaner where i deemed it suitable without changing the intent of the code.
(This is a repost, something severely wrong happened with my fork yesterday and PR #3221 closed)
Why This Is Good For ClanGen
I hope it will help with code readability and therefore maintainability
Linked Issues
Proof of Testing
I've also tested mediate relationships, kill the leader, break up and make mates of cats and other easily triggered events
Changelog/Credits
refactoring and code cleaning in the following folders: