Skip to content

Commit e99e832

Browse files
committed
Improved Logging for Stratcon Force Selection
- Added detailed logging to indicate when no suitable combat teams are found.
1 parent d1bdc94 commit e99e832

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -2412,8 +2412,14 @@ public static List<Integer> getAvailableForceIDs(Campaign campaign, AtBContract
24122412
}
24132413
}
24142414

2415-
if (suitableForces.isEmpty() && !bypassRoleRestrictions) {
2416-
suitableForces = getAvailableForceIDs(campaign, contract, true);
2415+
if (suitableForces.isEmpty()) {
2416+
if (!bypassRoleRestrictions) {
2417+
logger.info("No suitable combat teams found for contract {}. Relaxing restrictions", contract.getId());
2418+
suitableForces = getAvailableForceIDs(campaign, contract, true);
2419+
} else {
2420+
logger.info("No suitable combat teams found for contract {} despite relaxed restrictions." +
2421+
" Scenario generation will likely be skipped.", contract.getId());
2422+
}
24172423
}
24182424

24192425
return suitableForces;

0 commit comments

Comments
 (0)