8000 Increased the Number of Contracts Generated for New Campaigns by IllianiBird · Pull Request #6453 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Increased the Number of Contracts Generated for New Campaigns #6453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ public void generateContractOffers(Campaign campaign, boolean newCampaign) {

int unitRatingMod = campaign.getAtBUnitRatingMod();

if (newCampaign) {
// At this point in a campaign the unit rating would be NONE, however, we want the player to start
// with access to plenty of contracts, so we temporarily bump them to REGULAR.
unitRatingMod = REGULAR.getExperienceLevel();
}

for (AtBContract contract : campaign.getActiveAtBContracts()) {
checkForSubcontracts(campaign, contract, unitRatingMod);

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

int numContracts = d6() - 4 + unitRatingMod;

if (newCampaign) {
// For a similar reason as previously stated, we want the user to be able to jump into the action off
// the bat, so we give them extra contracts to start off.
numContracts = d6() + (unitRatingMod * 2);
}

if (isGrayMonday) {
for (int i = 0; i < numContracts; i++) {
if (d6() <= 2) {
Expand Down
0