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

Updated isChild() #4041

Merged
merged 4 commits into from
May 16, 2024
Merged

Updated isChild() #4041

merged 4 commits into from
May 16, 2024

Conversation

IllianiCBT
Copy link
Collaborator

We utilize a check called isChild() primarily within the mhq reproduction system. Currently, it defines anyone aged 14 or older as an adult eligible for reproduction.

Following a discussion with Hammer, we have decided to raise this age threshold to 18. Although there are instances of 14-year-old parents in reality, we concluded that such scenarios do not contribute positively to mhq.

The 'isChild' method in the Person class has been updated to consider anyone aged 18 or below as a child, as opposed to the previous age limit of 13.
@IllianiCBT IllianiCBT changed the title Updated isChild Updated isChild() May 1, 2024
@IllianiCBT IllianiCBT self-assigned this May 1, 2024
@IllianiCBT
Copy link
Collaborator Author

IllianiCBT commented May 12, 2024 via email

The age check logic in the Person class has been updated. Previously, individuals up to and including 18 were considered children; this has now been revised, the condition now considers individuals as children if they are less than 18.
@IllianiCBT IllianiCBT requested a review from SJuliez May 15, 2024 01:31
@HammerGS HammerGS merged commit ebd9b54 into MegaMek:master May 16, 2024
4 checks passed
HammerGS added a commit that referenced this pull request May 16, 2024
+ PR #4041: Updated isChild()
+ Fix #4080: Updated Tooltips for the Marriageable & Trying to Conceive Flags
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.

3 participants