17 public static class Level1
implements CharacterStatsSkillEffect {
18 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
19 stats.getDynamic().getMod(Stats.SUPPLY_BONUS_MOD).modifyFlat(
id,
SUPPLY_BONUS);
22 public void unapply(MutableCharacterStatsAPI stats, String
id) {
23 stats.getDynamic().getMod(Stats.SUPPLY_BONUS_MOD).unmodifyFlat(
id);
26 public String getEffectDescription(
float level) {
27 return "All industries supply " +
SUPPLY_BONUS +
" more unit of all the commodities they produce";
30 public String getEffectPerLevelDescription() {
34 public ScopeDescription getScopeDescription() {
35 return ScopeDescription.GOVERNED_OUTPOST;
40 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
42 stats.getDynamic().getMod(Stats.CUSTOM_PRODUCTION_MOD).modifyMult(
id, 1f +
CUSTOM_PRODUCTION_BONUS/100f,
"Industrial planning");
45 public void unapply(MutableCharacterStatsAPI stats, String
id) {
47 stats.getDynamic().getMod(Stats.CUSTOM_PRODUCTION_MOD).unmodifyMult(
id);
50 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
51 TooltipMakerAPI info,
float width) {
54 Color c = Misc.getBasePlayerColor();
55 info.addPara(
"Affects: %s", opad + 5f, Misc.getGrayColor(), c,
"all colonies");
57 info.addPara(
"+%s maximum value of custom ship and weapon production per month", 0f,
hc,
hc,
61 public ScopeDescription getScopeDescription() {
62 return ScopeDescription.ALL_OUTPOSTS;