Skip to content

Commit

Permalink
Merge pull request #4087 from IllianiCBT/Salary_CamOpsRankModifiers
Browse files Browse the repository at this point in the history
Reintegrate Pay Multiplier into Salary Calculation
  • Loading branch information
HammerGS committed May 16, 2024
2 parents 6104b96 + 6c3b85e commit e80c390
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MekHQ/src/mekhq/campaign/personnel/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -1939,8 +1939,6 @@ public Money getSalary(final Campaign campaign) {
}

// If the salary is negative, then use the standard amounts
// TODO : Figure out a way to allow negative salaries... could be used to simulate a Holovid
// TODO : star paying to be part of the company, for example
Money primaryBase = campaign.getCampaignOptions().getRoleBaseSalaries()[getPrimaryRole().ordinal()];

// SpecInf is a special case, this needs to be applied first to bring base salary up to RAW.
Expand Down Expand Up @@ -1983,7 +1981,11 @@ public Money getSalary(final Campaign campaign) {

// TODO: distinguish DropShip, JumpShip, and WarShip crew
// TODO: Add era mod to salary calc..
return primaryBase.plus(secondaryBase);
if (getRank().getPayMultiplier() > 0) {
return primaryBase.plus(secondaryBase).multipliedBy(getRank().getPayMultiplier());
} else {
return primaryBase.plus(secondaryBase);
}
}

/**
Expand Down

0 comments on commit e80c390

Please sign in to comment.