42 PiracyRespiteScript script = PiracyRespiteScript.get();
43 if (script ==
null)
return;
45 Color h = Misc.getHighlightColor();
49 int rem = Math.round(script.getDaysRemaining());
50 String days = rem == 1 ?
"day" :
"days";
52 if (KantaCMD.playerHasProtection()) {
53 tooltip.addPara(
"Your colonies have %s, resulting in an "
54 +
"increased accessibility bonus.", opad, Misc.getPositiveHighlightColor(),
55 "Kanta's Protection");
59 tooltip.addPara(
"%s accessibility (%s " + days +
" remaining).",
61 "+" + (
int)Math.round(
getBonus() * 100f) +
"%",
"" + rem);
63 tooltip.addPara(
"%s accessibility.",
65 "+" + (
int)Math.round(
getBonus() * 100f) +
"%");