This commit is contained in:
Anuken
2025-05-09 13:23:33 -04:00
parent 869b3487c4
commit af0d0be294
2 changed files with 7 additions and 2 deletions

View File

@@ -66,9 +66,8 @@ public class Logic implements ApplicationListener{
Events.on(SaveLoadEvent.class, e -> {
if(state.isCampaign()){
state.rules.coreIncinerates = true;
//TODO why is this even a thing?
state.rules.canGameOver = true;
state.rules.allowEditRules = false;
//fresh map has no sector info
if(!e.isMap){
@@ -132,6 +131,7 @@ public class Logic implements ApplicationListener{
//enable building AI on campaign unless the preset disables it
state.rules.coreIncinerates = true;
state.rules.allowEditRules = false;
state.rules.allowEditWorldProcessors = false;
state.rules.waveTeam.rules().infiniteResources = true;
state.rules.waveTeam.rules().fillItems = true;

View File

@@ -633,6 +633,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
public void act(float delta){
if(scene.getDialog() == PlanetDialog.this && (scene.getHoverElement() == null || !scene.getHoverElement().isDescendantOf(e -> e instanceof ScrollPane))){
scene.setScrollFocus(PlanetDialog.this);
if(debugSectorAttackEdit && input.ctrl() && input.keyTap(KeyCode.c)){
Core.app.setClipboardText(state.planet.writeAttackSectorBits());
Vars.ui.showInfoFade("@copied");
}
}
super.act(delta);