File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
MekHQ/src/mekhq/campaign/randomEvents/personalities/enums Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3737import static megamek .common .compute .Compute .randomInt ;
3838import static mekhq .campaign .randomEvents .personalities .enums .PersonalityTraitType .REASONING ;
3939import static mekhq .utilities .MHQInternationalization .getFormattedTextAt ;
40- import static mekhq .utilities .MHQInternationalization .getTextAt ;
4140
4241import megamek .codeUtilities .MathUtility ;
4342import megamek .common .enums .Gender ;
@@ -127,9 +126,9 @@ public enum ReasoningComparison {
127126 * @param level The integer score associated with this {@link Reasoning} enum value
128127 */
129128 Reasoning (ReasoningComparison comparison , int level ) {
130- this .label = generateLabel ();
131129 this .comparison = comparison ;
132130 this .level = level ;
131+ this .label = generateLabel ();
133132 }
134133
135134 public String getLabel () {
@@ -161,7 +160,7 @@ public int getLevel() {
161160 // region Getters
162161 private String generateLabel () {
163162 final String RESOURCE_KEY = name () + ".label" ;
164- return getTextAt (RESOURCE_BUNDLE , RESOURCE_KEY ) + " (" + level + ")" ;
163+ return getFormattedTextAt (RESOURCE_BUNDLE , RESOURCE_KEY ) + " (" + level + ")" ;
165164 }
166165
167166 /**
You can’t perform that action at this time.
0 commit comments