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

Conversation

IllianiBird
Copy link
Collaborator
@IllianiBird IllianiBird commented Mar 27, 2025
  • Added logic to enhance contract generation during new campaigns:
    • Temporarily boosted unit rating to provide more contract opportunities at the start of a campaign.
    • Increased the number of initial contracts to ensure players can immediately participate in gameplay.

Dev Notes

We've had plenty of user feedback at this point that the initial contracts are generally a little stingy. This has resulted in a tendency for players to spam 'Generate Contract (GM)' until they get something they like the look of. While there is nothing wrong with that, I feel like we can do better.

Previously, new campaigns would generate 1d6 - 4 + unitRatingMod contracts. However, during campaign creation the player doesn't have a unit rating modifier meaning the equation is actually 1d6 - 4, or 0-2. Now, there is a conditional that ensures no fewer than 2 contracts generation (under normal circumstances), but that's still pretty miserly.

Now we temporarily give the player a unit rating modifier of REGULAR (or +3) and we change the calculation to be 1d6 + (unitRatingMod * 2) or 1d6 + 6 (for new campaigns only). This ensures new campaigns are always presented with 7-12 contracts.

It's my hope that this will wean players off of spamming 'generate contract', encouraging them to pick up contracts that might not be perfect, but where those imperfections push an emergent narrative. It also improves our new user experience, as new users generally didn't know about the option of generating contracts in GM mode.

- Added logic to enhance contract generation during new campaigns:
  - Temporarily boosted unit rating to provide more contract opportunities at the start of a campaign.
  - Increased the number of initial contracts to ensure players can immediately participate in gameplay.
@IllianiBird IllianiBird added AtB UX User experience Legacy Improvement Improves a legacy setup's handling. labels Mar 27, 2025
@IllianiBird IllianiBird self-assigned this Mar 27, 2025
Copy link
codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.29%. Comparing base (62664e5) to head (5d85bfb).
Report is 22 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6453      +/-   ##
============================================
- Coverage     11.30%   11.29%   -0.01%     
+ Complexity     6289     6286       -3     
============================================
  Files          1072     1072              
  Lines        136541   136551      +10     
  Branches      21116    21121       +5     
============================================
- Hits          15433    15427       -6     
- Misses       119564   119579      +15     
- Partials       1544     1545       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# Conflicts:
#	MekHQ/src/mekhq/campaign/market/contractMarket/AtbMonthlyContractMarket.java
@IllianiBird IllianiBird merged commit cda0ef0 into MegaMek:master Mar 28, 2025
6 checks passed
@IllianiBird IllianiBird deleted the startingContracts branch March 31, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AtB Legacy Improvement Improves a legacy setup's handling. UX User experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0