Skip to content

Fix: Fixed Default Attribute Scores; Fixed Attribute Score Randomness; Reworked Attribute Score Randomness Option; Added Starting Attribute Score Documentation#6843

Merged
Scoppio merged 3 commits into
MegaMek:masterfrom
IllianiBird:fixedAttributeGeneration
May 2, 2025
Merged

Fix: Fixed Default Attribute Scores; Fixed Attribute Score Randomness; Reworked Attribute Score Randomness Option; Added Starting Attribute Score Documentation#6843
Scoppio merged 3 commits into
MegaMek:masterfrom
IllianiBird:fixedAttributeGeneration

Conversation

@IllianiBird

Copy link
Copy Markdown
Collaborator

Dev Notes

There were a few issues with starting attribute scores. Namely that some of the scores were wrong (0, in some places, or 41 charisma for LAM Pilots).

Attribute score randomization also wasn't correctly resetting attribute scores to their default value before randomizing. What this would mean is that character attributes would frequently spike towards one extreme or the other.

Regarding attribute score randomization, I didn't like the play feel of the extra randomness option. Especially as we didn't have a non-random attribute option. So I reworked the 'extra randomness' option. That now just toggles randomness on/off.

Marking this as 'high' as it could have significant impact on a players' campaign if they upgrade a campaign from 50.05 or 50.06 to 50.07.

…; Added Starting Attribute Score Documentation
@IllianiBird IllianiBird added Bug UX User experience Campaign Options Relates to, or includes, campaign option changes Severity: High Issues described as high severity as per the new issue form labels May 2, 2025
@IllianiBird IllianiBird self-assigned this May 2, 2025
@codecov

codecov Bot commented May 2, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 35.29412% with 11 lines in your changes missing coverage. Please review.

Project coverage is 11.52%. Comparing base (04afa55) to head (3f2d5f0).
Report is 60 commits behind head on master.

Files with missing lines Patch % Lines
...ign/personnel/generator/DefaultSkillGenerator.java 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6843   +/-   ##
=========================================
  Coverage     11.51%   11.52%           
- Complexity     6563     6567    +4     
=========================================
  Files          1100     1100           
  Lines        140989   140971   -18     
  Branches      21848    21845    -3     
=========================================
+ Hits          16237    16243    +6     
+ Misses       123056   123030   -26     
- Partials       1696     1698    +2     

☔ 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.

@Scoppio Scoppio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add a type of point-buy in a next iteration, and allow players to set the base point-buy stack in the campaign options. This can help with the all random stuff

@IllianiBird

Copy link
Copy Markdown
Collaborator Author

That'll be coming in 50.07/50.08, with the new company generator. But yeah, definitely on my radar.

# Conflicts:
#	MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties
@Scoppio Scoppio merged commit 81ca58c into MegaMek:master May 2, 2025
3 checks passed
@IllianiBird IllianiBird deleted the fixedAttributeGeneration branch June 7, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Campaign Options Relates to, or includes, campaign option changes Severity: High Issues described as high severity as per the new issue form UX User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants