Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkborderman committed Sep 13, 2024
1 parent c90b6ab commit eb32b69
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.lwjgl.input.Keyboard;

import com.fs.starfarer.api.Global;
import com.fs.starfarer.api.campaign.InteractionDialogAPI;
import com.fs.starfarer.api.campaign.OptionPanelAPI;
import com.fs.starfarer.api.campaign.SectorEntityToken;
import com.fs.starfarer.api.campaign.econ.MarketAPI;
import com.fs.starfarer.api.campaign.rules.MemoryAPI;
import com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin;
import com.fs.starfarer.api.impl.campaign.terrain.AsteroidBeltTerrainPlugin;
import com.fs.starfarer.api.impl.campaign.terrain.DebrisFieldTerrainPlugin;
import com.fs.starfarer.api.impl.campaign.terrain.NebulaTerrainPlugin;
import com.fs.starfarer.api.util.Misc;
import com.fs.starfarer.campaign.CampaignTerrain;

public class StarSystemDesignDebrisScript extends BaseCommandPlugin{

public static Logger log = Global.getLogger(StarSystemDesignDebrisScript.class);

@Override
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) {
OptionPanelAPI opts = dialog.getOptionPanel();
Expand All @@ -45,6 +48,13 @@ public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Tok
opts.setEnabled("StarSystemDesignDebrisRemoveOption", true);
}
}else{
if(target.getMarket() != null){
MarketAPI market = target.getMarket();
log.info(market.getFactionId());
log.info(market.getSurveyLevel());
log.info(market.getName());
}

opts.setEnabled("StarSystemDesignDebrisRemoveOption", true);
}
opts.addOption("Back", "StarSystemDesignDebrisBackOption");
Expand Down

0 comments on commit eb32b69

Please sign in to comment.