Skip to content
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

Added Randomize Traits Option For Character Creation #6572

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

  • Introduced a new option to randomize traits during character creation, including Connections, Reputation, Wealth, and Unlucky scores.
  • Updated CampaignOptionsDialog.properties with labels and tooltips for the new setting.
  • Extended RandomSkillPreferences to support randomizeTraits with default settings and XML integration.
  • Modified personnel generators to calculate and assign random trait values when the option is enabled.
  • Added methods to the Person class for modifying traits with proper clamping to ensure values remain within defined limits.
  • Updated AdvancementTab to include a checkbox for enabling or disabling the new randomization feature.

Dev Notes

This is the last of the random character creation features needed to finish off Traits and Attributes. While I was working on it I also adding clamping to the various Trait setters and changers to ensure they can't fall outside of expected values.

- Introduced a new option to randomize traits during character creation, including Connections, Reputation, Wealth, and Unlucky scores.
- Updated `CampaignOptionsDialog.properties` with labels and tooltips for the new setting.
- Extended `RandomSkillPreferences` to support `randomizeTraits` with default settings and XML integration.
- Modified personnel generators to calculate and assign random trait values when the option is enabled.
- Added methods to the `Person` class for modifying traits with proper clamping to ensure values remain within defined limits.
- Updated `AdvancementTab` to include a checkbox for enabling or disabling the new randomization feature.
@IllianiCBT IllianiCBT added Personnel Personnel-related Issues Campaign Options Relates to, or includes, campaign option changes labels Apr 6, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 6, 2025
Copy link

codecov bot commented Apr 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.57%. Comparing base (e0ebe3a) to head (ecbfe75).
Report is 19 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6572      +/-   ##
============================================
- Coverage     11.57%   11.57%   -0.01%     
+ Complexity     6401     6398       -3     
============================================
  Files          1085     1085              
  Lines        139499   139658     +159     
  Branches      21514    21541      +27     
============================================
+ Hits          16149    16166      +17     
- Misses       121776   121921     +145     
+ Partials       1574     1571       -3     

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

@IllianiCBT
Copy link
Collaborator Author

  • Added a personnel right-click menu to reset a character's Traits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Campaign Options Relates to, or includes, campaign option changes Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant