Skip to content

Commit

Permalink
WIP new **challenge** sector, to be tested later
Browse files Browse the repository at this point in the history
  • Loading branch information
Slotterleet committed Jun 16, 2024
1 parent 405e645 commit 52eb42e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
Binary file added res/maps/intruders-challenge.msav
Binary file not shown.
Binary file added res/sprites/icons/challenge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/fos/content/FOSSectors.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package fos.content;

import fos.type.content.ChallengeSectorPreset;
import mindustry.type.SectorPreset;

import static fos.content.FOSPlanets.lumoni;

public class FOSSectors {
public static SectorPreset
/* Serpulo */ siloTerminal,
/* Lumoni */ awakening, ruins, intruders, citadel, tinMiningSite, conflict;
/* Lumoni */ awakening, ruins, intruders, intrudersChallenge, citadel, tinMiningSite, conflict;

public static void load() {
/*
Expand All @@ -33,6 +34,11 @@ public static void load() {
captureWave = 31;
}};

intrudersChallenge = new ChallengeSectorPreset("intruders-challenge", lumoni, 68){{
difficulty = 8;
captureWave = 16;
}};

citadel = new SectorPreset("citadel", lumoni, 44){{
difficulty = 4;
captureWave = 21;
Expand Down
1 change: 1 addition & 0 deletions src/fos/content/LumoniTechTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public static void load() {
node(tinMiningSite, Seq.with(new SectorComplete(intruders)), () -> {
soontm();
});
node(intrudersChallenge, Seq.with(new SectorComplete(intruders)), () -> {});
});
node(FOSSectors.citadel, Seq.with(new SectorComplete(ruins)), () -> {
soontm();
Expand Down
15 changes: 15 additions & 0 deletions src/fos/type/content/ChallengeSectorPreset.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package fos.type.content;

import arc.Core;
import mindustry.type.*;

public class ChallengeSectorPreset extends SectorPreset {
public ChallengeSectorPreset(String name, Planet planet, int sector) {
super(name, planet, sector);
}

@Override
public void loadIcon() {
uiIcon = fullIcon = Core.atlas.find("fos-challenge");
}
}

0 comments on commit 52eb42e

Please sign in to comment.