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 Divorce and Death Handling #4440

Merged
merged 5 commits into from
Jul 23, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Jul 19, 2024

Enhanced the way the game handles the death of a character within a relationship. Introduced comprehensive checks and notifications for the status of family members upon a character's death, including living spouses, children, and parents. Logs were also updated to differentiate between 'divorced' and 'widowed'.

Closes #4323

In the `Person` class, when a person's status was updated to 'Dead', checks were added to determine if the person has living children. If the person had children and no living parents remain, the children are logged as orphans.
Enhanced the way the game handles the death of a character within a relationship. Introduced comprehensive checks and notifications for the status of family members upon a character's death, including living spouses, children, and parents. Logs were also updated to differentiate between 'divorced' and 'widowed'.
@IllianiCBT IllianiCBT changed the title Updated Divorce and death handling in MekHQ Updated Divorce and Death Handling Jul 19, 2024
@IllianiCBT IllianiCBT self-assigned this Jul 19, 2024
@IllianiCBT IllianiCBT added the Personnel Personnel-related Issues label Jul 19, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.23%. Comparing base (065827d) to head (b97e3ef).
Report is 40 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4440      +/-   ##
============================================
- Coverage     10.24%   10.23%   -0.01%     
  Complexity     5809     5809              
============================================
  Files           925      925              
  Lines        126459   126513      +54     
  Branches      18769    18784      +15     
============================================
+ Hits          12953    12954       +1     
- Misses       112231   112284      +53     
  Partials       1275     1275              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# Conflicts:
#	MekHQ/src/mekhq/campaign/Campaign.java
# Conflicts:
#	MekHQ/resources/mekhq/resources/Personnel.properties
#	MekHQ/src/mekhq/campaign/personnel/Person.java
@IllianiCBT IllianiCBT merged commit 79e2979 into MegaMek:master Jul 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: Apply death notice to all family
3 participants