Skip to content

Commit cda0ef0

Browse files
authored
Merge pull request #6453 from IllianiCBT/startingContracts
Increased the Number of Contracts Generated for New Campaigns
2 parents 74cec28 + 5d85bfb commit cda0ef0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

MekHQ/src/mekhq/campaign/market/contractMarket/AtbMonthlyContractMarket.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ public void generateContractOffers(Campaign campaign, boolean newCampaign) {
100100

101101
int unitRatingMod = campaign.getAtBUnitRatingMod();
102102

103+
if (newCampaign) {
104+
// At this point in a campaign the unit rating would be NONE, however, we want the player to start
105+
// with access to plenty of contracts, so we temporarily bump them to REGULAR.
106+
unitRatingMod = REGULAR.getExperienceLevel();
107+
}
108+
103109
for (AtBContract contract : campaign.getActiveAtBContracts()) {
104110
checkForSubcontracts(campaign, contract, unitRatingMod);
105111

@@ -116,6 +122,12 @@ public void generateContractOffers(Campaign campaign, boolean newCampaign) {
116122

117123
int numContracts = d6() - 4 + unitRatingMod;
118124

125+
if (newCampaign) {
126+
// For a similar reason as previously stated, we want the user to be able to jump into the action off
127+
// the bat, so we give them extra contracts to start off.
128+
numContracts = d6() + (unitRatingMod * 2);
129+
}
130+
119131
if (isGrayMonday) {
120132
for (int i = 0; i < numContracts; i++) {
121133
if (d6() <= 2) {

0 commit comments

Comments
 (0)