1
Suggestions / New Hint for Weapons: PD_ONLY
« on: March 19, 2013, 05:31:26 PM »
Useful for PD weapons with limited ammo like pd missiles
Starsector 0.97a is out! (02/02/24); New blog post: Save/Load UI, Autosave, Intel Map Markers, and More (04/10/24)
CargoAPI.java
/**
* Use Global.getFactory().createFleetMember() and CargoAPI.getMothballedShips().addFleetMember() instead.
*/
@Deprecated public void addMothballedShip(FleetMemberType type, String variantOrWingId, String optionalName);
try
{
FleetMemberAPI fb=Global.getFactory().createFleetMember(FleetMemberType.SHIP, name);
Global.getSector().addMessage(">>>checkpoint");
cargo.getMothballedShips().addFleetMember(fb); //if i add this line not the previous line message don't appear, and not even the catch message
//cargo.addMothballedShip(FleetMemberType.SHIP, name, null); //with this everything work
}
catch (Exception e) {Global.getSector().addMessage(e.toString());}