Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Rhalen

Pages: [1]
1
Hello,
I want for Sustained Burn to remain active when Remote Survey and other abilities are used.
When an activatable ability is used, it deactivates some toggleable abilities (like sustained burn) but not others (like Go Dark, or Trasponder on).

I found the following method inside com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin, line 73:

Code
protected void disableIncompatible() {
CampaignFleetAPI fleet = getFleet();
if (fleet == null) return;

for (AbilityPlugin curr : fleet.getAbilities().values()) {
if (curr == this) continue;
if (!isCompatible(curr)) {
curr.forceDisable();
}
}
}

Which calls isCompatible(), line 85:

Code
protected boolean isCompatible(AbilityPlugin other) {
for (String tag : spec.getTags()) {
if (spec.isPositiveTag(tag) && other.getSpec().hasTag(tag)) return false;
if (other.getSpec().hasOppositeTag(tag)) return false;
}
return true;
}

Apparently the script recognizes which abilities to deactivate based on some ability tags, but I cannot figure out where to find those.
I don't know how to use the AbilitySpecAPI to get the tags.

Thanks a lot for your help!

2
Mods / [0.97a] Attuned Drive Field Hullmod
« on: February 08, 2022, 09:12:04 AM »
This simple mod adds an hull modification (Attuned Drive Field) that gives +1 Burn speed at half the cost of Augmented Drive Field.
The mod is updated for the following version of Starsector: 0.97a-RC11.

  • This mod can be enabled on an existing save, but will cause a crash on the save if disabled.
  • The hullmod is available and unlocked from the start.
  • The hullmod cannot be installed together with Augmented Drive Field, and will occupy a Logistic slot on the ship it is installed on.
  • Mercenary fleets, bounty hunters, etc. have a chance to include this hullmod in their builds.

Thanks a lot for your feedback!


Install instructions:
  • Download the mod from the link above.
  • Right click -> put the main folder into Starsector "mods" folder (default path: C:\Program Files\Starsector\mods).


Pages: [1]