Skip to content

Commit

Permalink
Merge pull request #4823 from IllianiCBT/prisoners_defectionChance
Browse files Browse the repository at this point in the history
Updated Prisoner Defection Base TN
  • Loading branch information
IllianiCBT authored Sep 13, 2024
2 parents f2c597f + fbdd148 commit 9174ce8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* This object will be the main workhorse for the scenario
* resolution wizard. It will keep track of information and be
* fed back and forth between the various wizards
*
*
* @author Jay Lawson (jaylawson39 at yahoo.com)
*/
public class ResolveScenarioTracker {
Expand Down Expand Up @@ -442,7 +442,7 @@ private UnitStatus processAlliedUnit(Entity e) {
* This method should be run the first time an entity is loaded into the
* tracker,
* either from the game or from a MUL file.
*
*
* @param en
* @param controlsField
*/
Expand Down Expand Up @@ -709,7 +709,7 @@ else if (pilot.getSlotCount() > 1) {
* Helper function that handles crew and passengers ejected from a large
* spacecraft,
* which may be scattered about on numerous other entities
*
*
* @param ship The large craft unit we're currently processing
* @param en The entity associated with the unit Ship
* @param personnel The list of persons assigned to the ship as crew and
Expand Down Expand Up @@ -897,7 +897,7 @@ private void processLargeCraft(Unit ship, Entity en, List<Person> personnel,
* Helper function that contains the logic for processing prisoner capture.
* Copy and pasted from checkStatusOfPersonnel, so the internal logic is kind of
* opaque.
*
*
* @param unitsToProcess The list of TestUnit entities to process. Note that
* in order to be processed, a unit must be in the
* salvageStatus hashtable.
Expand Down 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().getUnitRatingAsInteger();
int campaignUnitRating = getCampaign().getUnitRatingMod();

// if this isn't an AtB Contract, we use the individual's experience level,
// instead of enemy skill
Expand All @@ -1537,7 +1537,7 @@ && getCampaign().getCampaignOptions().isUseAtBPrisonerDefection()) {
enemyRating = ((AtBContract) mission).getEnemySkill().ordinal();
}

int requiredValue = 8 + enemyRating - campaignUnitRating;
int requiredValue = 10 + enemyRating - campaignUnitRating;

if (getCampaign().getCampaignOptions().isUseLoyaltyModifiers()) {
requiredValue += person.getLoyaltyModifier(person.getLoyalty());
Expand Down Expand Up @@ -1850,7 +1850,7 @@ public boolean usesSalvageExchange() {
* This object is used to track the status of a particular personnel. At the
* present,
* we track the person's missing status, hits, and XP
*
*
* @author Jay Lawson
*
*/
Expand Down Expand Up @@ -1981,7 +1981,7 @@ public int compareTo(PersonStatus ostatus) {
* This object is used to track the status of a opposition personnel. We need to
* actually put the whole
* person object here because we are not already tracking it on the campaign
*
*
* @author Jay Lawson
*
*/
Expand Down Expand Up @@ -2019,7 +2019,7 @@ public void setRansomed(boolean ransomed) {

/**
* This object is used to track the status of a particular unit.
*
*
* @author Jay Lawson
*
*/
Expand Down

0 comments on commit 9174ce8

Please sign in to comment.