Skip to content

Commit e80c390

Browse files
authored
Merge pull request #4087 from IllianiCBT/Salary_CamOpsRankModifiers
Reintegrate Pay Multiplier into Salary Calculation
2 parents 6104b96 + 6c3b85e commit e80c390

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

MekHQ/src/mekhq/campaign/personnel/Person.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,6 @@ public Money getSalary(final Campaign campaign) {
19391939
}
19401940

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

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

19841982
// TODO: distinguish DropShip, JumpShip, and WarShip crew
19851983
// TODO: Add era mod to salary calc..
1986-
return primaryBase.plus(secondaryBase);
1984+
if (getRank().getPayMultiplier() > 0) {
1985+
return primaryBase.plus(secondaryBase).multipliedBy(getRank().getPayMultiplier());
1986+
} else {
1987+
return primaryBase.plus(secondaryBase);
1988+
}
19871989
}
19881990

19891991
/**

0 commit comments

Comments
 (0)