-
Notifications
You must be signed in to change notification settings - Fork 344
Variable equipment size, part 1 #1902
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
Conversation
|
Build scan available at https://gradle.com/s/trwpuxqeo4euu |
|
Build scan available at https://gradle.com/s/ry7ipdb75sgh6 |
|
This pull request introduces 2 alerts when merging 18ebc4d into 4c55b98 - view on LGTM.com new alerts:
|
sixlettervariables
left a comment
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.
One bug I noticed on my first go through.
|
Build scan available at https://gradle.com/s/yeoxikodfkn22 |
This is a change I've been putting off for a while because of its potential to have hidden side effects, but there's some equipment that won't match the construction rules without it. It affects items that have a variable size or weight. So far we have taken two approaches:
To rework this I broadened the use of the ammoCapacity field of Mounted, currently used for weapon bay ammo bin size, for use with any variable-sized equipment. I added new methods to access the name and cost of the item through Mounted to be able to account for the size. Many of the files that were changed were a result of replacing EquipmentType#getName with Mounted#getName where it made sense to do so. The extra drone/MASH theater instances have been removed, and I added code in the unit loaders to handle legacy entries.
This is the first phase, and deals with DCCS, MASH, ATAC, and DTAC. Some of the code is in place for handling the equipment listed under #1 above for illustration purposes, but as this change is fairly broad I wanted to limit it. This also does not show the equipment capacity in the TRO summaries. That required some more involved changes, which I worked on in a separate branch.
There will be accompanying MML and MekHQ PRs.