142 Color h = Misc.getHighlightColor();
143 Color bad = Misc.getNegativeHighlightColor();
144 Color t = Misc.getTextColor();
145 Color g = Misc.getGrayColor();
200 tooltip.addPara(
"Utilizes targeting data from the ship's largest ballistic slot "
201 +
"to benefit certain weapons, extending the base range of "
202 +
"typical ballistic weapons to match similar but larger weapons. "
203 +
"Also benefits hybrid weapons. Point-defense weapons are unaffected.",
204 opad, h,
"ship's largest ballistic slot",
"base range");
207 tooltip.addPara(
"The range bonus is based on the size of the largest ballistic slot, "
208 +
"and the increased base range is capped, but still subject to other modifiers.", opad);
215 tooltip.addSectionHeading(
"Ballistic weapon range", Alignment.MID, opad);
218 tooltip.addPara(
"Affects small and medium ballistic weapons.", opad);
221 float colW = (int) ((width - col1W - 12f) / 3f);
224 tooltip.beginTable(Misc.getBasePlayerColor(), Misc.getDarkPlayerColor(), Misc.getBrightPlayerColor(),
226 new Object [] {
"Largest b. slot", col1W,
"Small wpn", colW,
"Medium wpn", colW,
"Range cap", lastW});
230 if (largest == WeaponSize.SMALL) c = h;
231 else if (largest == WeaponSize.MEDIUM) c = h;
233 tooltip.addRow(Alignment.MID, c,
"Small / Medium",
235 Alignment.MID, g,
"---",
238 if (largest == WeaponSize.LARGE) c = h;
240 tooltip.addRow(Alignment.MID, c,
"Large",
245 tooltip.addTable(
"", 0, opad);
248 tooltip.addSectionHeading(
"Hybrid weapon range", Alignment.MID, opad + 7f);
250 tooltip.addPara(
"Affects hybrid weapons (those that can fit into both ballistic and energy slots)"
251 +
" of all sizes.", opad);
254 colW = (int) ((width - col1W - lastW - 15f) / 3f);
256 tooltip.beginTable(Misc.getBasePlayerColor(), Misc.getDarkPlayerColor(), Misc.getBrightPlayerColor(),
258 new Object [] {
"Largest b. slot", col1W,
"Small", colW,
"Medium", colW,
"Large", colW,
"Range cap", lastW});
262 if (largest == WeaponSize.SMALL) c = h;
263 else if (largest == WeaponSize.MEDIUM) c = h;
265 tooltip.addRow(Alignment.MID, c,
"Small / Medium",
271 if (largest == WeaponSize.LARGE) c = h;
273 tooltip.addRow(Alignment.MID, c,
"Large",
279 tooltip.addTable(
"", 0, opad);
282 tooltip.addSectionHeading(
"Interactions with other modifiers", Alignment.MID, opad + 7f);
283 tooltip.addPara(
"Since the base range is increased, this modifier"
284 +
" - unlike most other flat modifiers - "
285 +
"is increased by percentage modifiers from other hullmods and skills.", opad);