diff --git a/MekHQ/src/mekhq/gui/stratcon/StratconScenarioWizard.java b/MekHQ/src/mekhq/gui/stratcon/StratconScenarioWizard.java index e424535366..ebcdd157ec 100644 --- a/MekHQ/src/mekhq/gui/stratcon/StratconScenarioWizard.java +++ b/MekHQ/src/mekhq/gui/stratcon/StratconScenarioWizard.java @@ -43,6 +43,7 @@ import java.util.*; import static java.lang.Math.min; +import static mekhq.campaign.mission.AtBDynamicScenarioFactory.translateTemplateObjectives; import static mekhq.campaign.personnel.SkillType.S_LEADER; import static mekhq.campaign.stratcon.StratconRulesManager.BASE_LEADERSHIP_BUDGET; import static mekhq.campaign.stratcon.StratconRulesManager.ReinforcementResultsType.DELAYED; @@ -141,6 +142,16 @@ private void setUI() { validate(); } + /** + * Returns a concatenated string of a unit's force hierarchy, in reversed order, + * starting from the highest parent Force going down to the given unit's direct Force. + *
+ * If the unit does not belong to any Force, an empty string is returned.
+ *
+ * @param unit The Unit whose Force hierarchy names are to be returned.
+ * @return A concatenated string of Force names in reversed order separated by a slash,
+ * or an empty string if the unit is not assigned to any Force.
+ */
private String getForceNameReversed(Unit unit) {
List