17 public static class Level0
implements DescriptionSkillEffect {
18 public String getString() {
19 int baseAdmins = (int)
Global.
getSector().getPlayerStats().getAdminNumber().getBaseValue();
20 int baseOutposts = (int)
Global.
getSector().getPlayerStats().getOutpostNumber().getBaseValue();
22 String colonies =
"colonies";
23 String admins =
"administrators";
24 if (baseOutposts == 1) colonies =
"colony";
25 if (baseAdmins == 1) admins =
"administrator";
27 return "At a base level, able to manage up to " +
28 baseAdmins +
" " + admins +
" and to personally govern " +
29 baseOutposts +
" " + colonies +
". " +
30 "The maximum number of colonies governed personally can be" +
31 " exceeded at the cost of a stability penalty.";
38 public Color[] getHighlightColors() {
39 Color h = Misc.getHighlightColor();
40 h = Misc.getDarkHighlightColor();
41 return new Color[] {h, h, h};
43 public String[] getHighlights() {
44 String baseAdmins =
"" + (int)
Global.
getSector().getPlayerStats().getAdminNumber().getBaseValue();
45 String baseOutposts =
"" + (int)
Global.
getSector().getPlayerStats().getOutpostNumber().getBaseValue();
46 return new String [] {baseAdmins, baseOutposts};
48 public Color getTextColor() {
54 public static class Level1
implements CharacterStatsSkillEffect {
56 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
60 public void unapply(MutableCharacterStatsAPI stats, String
id) {
61 stats.getOutpostNumber().unmodify(
id);
64 public String getEffectDescription(
float level) {
65 return "Able to personally govern " + (int)
COLONY_NUM_BONUS +
" additional colony";
68 public String getEffectPerLevelDescription() {
72 public ScopeDescription getScopeDescription() {
73 return ScopeDescription.NONE;
77 public static class Level2
implements CharacterStatsSkillEffect {
79 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
80 stats.getAdminNumber().modifyFlat(
id,
ADMINS);
83 public void unapply(MutableCharacterStatsAPI stats, String
id) {
84 stats.getAdminNumber().unmodify(
id);
87 public String getEffectDescription(
float level) {
88 return "Able to manage " + (int)
ADMINS +
" additional administrator";
91 public String getEffectPerLevelDescription() {
95 public ScopeDescription getScopeDescription() {
96 return ScopeDescription.NONE;