Skip to content

Commit

Permalink
Fix typos in identifiers for MEKWARRIOR and AtBUnitRatingMod
Browse files Browse the repository at this point in the history
Corrected the role name from MECHWARRIOR to MEKWARRIOR in unit tests. Fixed the method name from getUnitRatingMod to getAtBUnitRatingMod in campaign tracker.
  • Loading branch information
IllianiCBT committed Sep 13, 2024
1 parent 435113d commit c7100ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit c7100ee

Please sign in to comment.