Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkborderman committed Sep 15, 2024
1 parent e5b8d24 commit fc57354
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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.DebrisFieldTerrainPlugin;
import com.fs.starfarer.api.impl.campaign.terrain.MagneticFieldTerrainPlugin;
import com.fs.starfarer.api.impl.campaign.terrain.NebulaTerrainPlugin;
import com.fs.starfarer.api.util.Misc;
import com.fs.starfarer.campaign.CampaignTerrain;
Expand Down Expand Up @@ -41,7 +42,7 @@ public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Tok
if(terrain.getPlugin().getClass() == DebrisFieldTerrainPlugin.class){
DebrisFieldTerrainPlugin debris = (DebrisFieldTerrainPlugin)terrain.getPlugin();
if(debris.isScavenged()) opts.setEnabled("StarSystemDesignDebrisRemoveOption", true);
} else if(terrain.getPlugin().getClass() == NebulaTerrainPlugin.class){
} else if(terrain.getPlugin().getClass() == NebulaTerrainPlugin.class || terrain.getPlugin().getClass() == MagneticFieldTerrainPlugin.class){
opts.setEnabled("StarSystemDesignDebrisRemoveOption", true);
} // AsteroidBelt and other ring will not removed because of its sprite will still exist

Expand Down

0 comments on commit fc57354

Please sign in to comment.