1package com.fs.starfarer.api.impl.hullmods;
3import com.fs.starfarer.api.combat.MutableShipStatsAPI;
4import com.fs.starfarer.api.combat.ShipAPI;
5import com.fs.starfarer.api.combat.ShipAPI.HullSize;
6import com.fs.starfarer.api.combat.ShipHullSpecAPI.ShipTypeHints;
7import com.fs.starfarer.api.impl.campaign.ids.Stats;
8import com.fs.starfarer.api.util.Misc;
16 super.applyEffectsBeforeShipCreation(hullSize, stats,
id);
19 stats.getDynamic().getMod(Stats.DEPLOYMENT_POINTS_MOD).modifyPercent(
id,
DP_INCREASE_PERCENT);
23 if (!Misc.isAutomated(ship)) {
26 if (ship.getHullSpec().getHints().contains(ShipTypeHints.NO_NEURAL_LINK)) {
33 if (!Misc.isAutomated(ship)) {
34 return "Can only be installed on automated ships, install Neural Interface instead";
36 if (ship.getHullSpec().getHints().contains(ShipTypeHints.NO_NEURAL_LINK)) {
37 return "Can not be installed on this ship";
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
boolean isApplicableToShip(ShipAPI ship)
static float DP_INCREASE_PERCENT
String getUnapplicableReason(ShipAPI ship)