8000 Added Administrative Skill Integration for Techs by IllianiBird · Pull Request #6438 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added Administrative Skill Integration for Techs #6438

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 5 commits into from
Mar 31, 2025

Conversation

IllianiBird
Copy link
Collaborator
  • Introduced a new campaign option "Techs Use Administration" to adjust daily available tech time based on the Administration skill level.
  • Updated UI components (e.g., RepairAndMaintenanceTab) to include the new setting.
  • Enhanced underlying logic to account for administration multipliers in technician time calculations.
  • Modified relevant components like CampaignOptions, tech-related views, and personnel generators to incorporate this feature.
  • Adjusted sorting logic for technicians to reflect the updated calculations.

Order of Merging

Must be merged AFTER #6436

Dev Notes

As mentioned in #6436, I'm wanting to move players away from mono-skilled professions. Specifically Doctors and Techs, as this increases the amount of xp required to progress the character.

In this PR we (optionally) hook available daily work time to the tech's Administration skill, similar to how number of beds is now (optionally) linked to a doctor's Administration skill. I've included a table below showing the estimated values.

Note that default work time is 480 minutes for a primary role, 240 for a secondary role. Those values are unchanged if this option is disabled.

Administration Level Primary Role Secondary Role
None 408 204
Ultra-Green 432 216
Green 456 228
Regular 480 240
Veteran 504 252
Elite+ 528 264

- Introduced a new campaign option "Techs Use Administration" to adjust daily available tech time based on the Administration skill level.
- Updated UI components (e.g., RepairAndMaintenanceTab) to include the new setting.
- Enhanced underlying logic to account for administration multipliers in technician time calculations.
- Modified relevant components like CampaignOptions, tech-related views, and personnel generators to incorporate this feature.
- Adjusted sorting logic for technicians to reflect the updated calculations.
- Added corresponding tooltips and text to inform users about the new functionality in the GUI.
…tration" to include a star emoji (🌟) for better visual emphasis.
# Conflicts:
#	MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties
#	MekHQ/src/mekhq/campaign/Campaign.java
#	MekHQ/src/mekhq/campaign/CampaignOptions.java
#	MekHQ/src/mekhq/campaign/personnel/Person.java
#	MekHQ/src/mekhq/campaign/personnel/PersonUtility.java
#	MekHQ/src/mekhq/campaign/personnel/generator/DefaultSkillGenerator.java
#	MekHQ/src/mekhq/campaign/randomEvents/RoninOffer.java
#	MekHQ/src/mekhq/gui/CampaignGUI.java
#	MekHQ/src/mekhq/gui/adapter/UnitTableMouseAdapter.java
#	MekHQ/src/mekhq/gui/dialog/HireBulkPersonnelDialog.java
…ions` is not initialized, improving testability with real `Person` objects.
Copy link
codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.28%. Comparing base (034c6bb) to head (f13a563).
Report is 10 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6438      +/-   ##
============================================
- Coverage     11.29%   11.28%   -0.01%     
  Complexity     6289     6289              
============================================
  Files          1073     1073              
  Lines        136694   136745      +51     
  Branches      21137    21151      +14     
============================================
- Hits          15435    15430       -5     
- Misses       119713   119766      +53     
- Partials       1546     1549       +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.

@IllianiBird IllianiBird merged commit 37cfd2a into MegaMek:master Mar 31, 2025
6 checks passed
@IllianiBird IllianiBird deleted the techsHaveAdmin 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
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
0