Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Histidine on March 02, 2019, 10:51:58 PM

Title: [0.9a RC10] Memory flags can make fleet try to fight with mothballed ships
Post by: Histidine on March 02, 2019, 10:51:58 PM
A fleet with MEMORY_KEY_MAKE_AGGRESSIVE and MEMORY_KEY_MAKE_HOSTILE in its memory will always attempt to fight the player in the fleet interaction dialog... even if all they have left are civilian ships, or worse, mothballed civilian ships. Possibly only one of those memory keys is needed, I didn't test.

Minimal save (no mods required to load) (https://www.dropbox.com/s/6atnw0sorehnedj/save_aggroTest_1585496065670607659.zip?dl=0). Touch the nearest Persean convoy to see the issue.
Memory flags were applied to fleet with the following code in console:
Code: java
runcode Global.getSector().getCampaignUI().getCurrentInteractionDialog().getInteractionTarget().getMemoryWithoutUpdate().set("$cfai_makeAggressive", true);
Global.getSector().getCampaignUI().getCurrentInteractionDialog().getInteractionTarget().getMemoryWithoutUpdate().set("$cfai_makeHostile", true);