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

Added Unit Quality Parameter to addNewUnit Method and Related Tests #4150

Merged
merged 4 commits into from
Jun 6, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Jun 4, 2024

This PR adds a int quality parameter to our addNewUnit() method, allowing calls to assign quality ratings to the Unit being added.

This is needed for a PR I'm working on (to address #2085 & #2405) and to fix a bug/not fully implemented feature with the AtB Unit Market. Due to the number of files this change touched on, it made sense to push the quality parameter addition separately to make reviewing easier.

The Unit Market is meant to sell Units at varying quality ratings, and is set up to do so, however as addNewUnit() didn't accept a quality parameter all added Units defaulted to quality rating 3 (D). To be clear: this PR only enables the ability to fully implement that functionality, it does not implement the functionality itself. That will be added in a follow-up PR.

@IllianiCBT
Copy link
Collaborator Author

Requested review actions resolved

@SJuliez SJuliez merged commit e6d9ae8 into MegaMek:master Jun 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants