Changed rule text generation to set first character to uppercase if needed.

This commit is contained in:
LevelX2 2013-04-05 15:10:59 +02:00
parent d4414b7de8
commit 36b4482367
2 changed files with 18 additions and 8 deletions

View file

@ -415,7 +415,10 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
sbRule.append(": ");
}
}
sbRule.append(modes.getText());
String text = modes.getText();
if (!text.isEmpty()) {
sbRule.append(Character.toUpperCase(text.charAt(0))).append(text.substring(1));
}
return sbRule.toString();
}