If classB extends/implements classA, and I call entity.removeScriptsOfClass(classA.class), will instances of classB also be removed?
They won't. If checks whether script.getClass() == parameterClass.
In combat, is there a way to tell if/when a FleetMemberAPI is disabled/destroyed or has retreated? Is there a way to get a list of all such fleet members for a given fleet (i.e. not deployed, not in reserve)?
There isn't. Added:
CombatFleetManagerAPI
List<FleetMemberAPI> getDisabledCopy();
List<FleetMemberAPI> getDestroyedCopy();
List<FleetMemberAPI> getRetreatedCopy();
Was a bit of an oversight these methods weren't in the interface to begin with. For now, you might take a snapshot of the reserves at battle start and try to work from that. Distinguishing "retreated" and "destroyed/disabled" might be tricky, though.
- Charge up for 3 seconds (chargeup)
- Fire at full power for 4 seconds (number of bursts and burst delay??)
- Charge down for 1.5 seconds (chargedown? Add to cooldown?)
- Be on cooldown for 25 seconds until it can be charged again and fired (?)
Take a look at the Tachyon Lance or Phase Lance stats in weapon_data, both of these do what you're trying to do, I think. If you don't want them to fire while charging up, add "beamFireOnlyOnFullCharge":true to the .wpn file.
Can I add information to conditions tooltips? (like the stability tooltip, that show what is affecting stability... I wanted to add to conditions tooltips warnings about what is blocking production, like missing resources/crew or excess goods stored)
Yes, see: MarketConditionPlugin interface.