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

Fix typos in identifiers for MEKWARRIOR and AtBUnitRatingMod #4831

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ public void resolveScenario(ScenarioStatus resolution, String report) {
// Then, we need to determine if they are a defector
if (prisonerStatus.isCurrentPrisoner()
&& getCampaign().getCampaignOptions().isUseAtBPrisonerDefection()) {
int campaignUnitRating = getCampaign().getUnitRatingMod();
int campaignUnitRating = getCampaign().getAtBUnitRatingMod();

// if this isn't an AtB Contract, we use the individual's experience level,
// instead of enemy skill
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;


import static mekhq.gui.dialog.nagDialogs.UntreatedPersonnelNagDialog.isUntreatedInjury;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

class UntreatedPersonnelNagDialogTest {
Campaign campaign;
Expand All @@ -37,7 +37,7 @@ public static void setup() {
@BeforeEach
public void init() {
campaign = new Campaign();
person = campaign.newPerson(PersonnelRole.MECHWARRIOR);
person = campaign.newPerson(PersonnelRole.MEKWARRIOR);
person.setHits(1);
}

Expand Down