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

Enforce parent-child age gap in adoption events #3080

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

bakermor
Copy link
Contributor

@bakermor bakermor commented Dec 1, 2024

About The Pull Request

Added limitation according to suggestions in the issue, m_c has to be older than 14 + the oldest kitten age for adoption events so that they are at least 14 years older than any kitten created by the event. Adds age check to filter_possible_events.

Why This Is Good For ClanGen

This keeps the adoption event outcomes consistent with the limits imposed on the player. Otherwise, if the parent is unset accidentally the player isn't able to fix it in game.

Linked Issues

#2152

Proof of Testing

Before:

Adoption events available for 12 moon old cat:
image
image

After:

Adoption events are no longer present in final_events for same 12 moon old cat:
image

(The events do still work for cats 14 years older than the kittens)
image

Changelog/Credits

@scribblecrumb scribblecrumb merged commit 9beedd0 into ClanGenOfficial:development Dec 1, 2024
7 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