-
Notifications
You must be signed in to change notification settings - Fork 382
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
Add isSuicideOnHit Unit Attribute #2543
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2543 +/- ##
===========================================
+ Coverage 20.37% 21.47% +1.1%
- Complexity 5809 6098 +289
===========================================
Files 831 831
Lines 73631 74228 +597
Branches 12400 12636 +236
===========================================
+ Hits 14999 15942 +943
+ Misses 56578 56067 -511
- Partials 2054 2219 +165
Continue to review full report at Codecov.
|
I need a bigger thumbs up! |
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.
No code issues.
I'll try to do some compatibility testing tonight. I should be able to use any map, right? We're just trying to ensure the new field in UnitAttachment
doesn't affect older clients?
@ssoloff Yeah any map should work for testing. UnitAttachment should be fine (almost 100% sure on that since I just added a new boolean property). I'm more concerned on the MustFightBattle and Fire changes as they are part of delegates and game data (also just very core to the engine). |
@ssoloff I ran some manual testing and made one fix to make sure the battle display actually remove any 'isSuicideOnHit' units that do get a hit. Everything else seems to work well. |
@ron-murhammer I tested the following scenarios for compatibility:
I observed no issues during play. The |
@ssoloff Yeah, should be just logic. I purposely avoided adding/changing any member fields. |
Addresses: https://forums.triplea-game.org/topic/323/unit-option-which-suicides-only-when-it-registers-a-hit-mines
Recommend reviewing without whitespace changes (?w=1).
Functional Changes
Testing
Example XML: