Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 9f02d3e

Browse files
committed
GUH
1 parent fb11707 commit 9f02d3e

24 files changed

Lines changed: 1275 additions & 276 deletions

assets/bundles/bundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ unit.biotech-kaph37.name = Kaph-37
169169
unit.biotech-kaph37.description = Spooder dweller.
170170
unit.biotech-kaph31.name = Kaph-31
171171
unit.biotech-kaph31.description = Scarier Spooder dweller.
172-
unit.ima.name = 2-12 "Ima"
173-
unit.a-91-shomeret.name = A-91 "Shomeret"
172+
unit.biotech-ima.name = 2-12 "Ima"
173+
unit.biotech-a-91-shomeret.name = A-91 "Shomeret"
174174
175175
team.septaris.name = Septaris
176176

assets/maps/ankle.msav

505 Bytes
Binary file not shown.

assets/maps/femur.msav

71 Bytes
Binary file not shown.
640 Bytes
Loading
1.13 KB
Loading
1.24 KB
Loading
13.1 KB
Loading
4.86 KB
Loading

src/biotech/BioEventHandler.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package biotech;
2+
3+
import arc.Events;
4+
import arc.util.Log;
5+
import arc.util.Reflect;
6+
import biotech.content.BioFx;
7+
import biotech.ui.BioResearchDialog;
8+
import biotech.world.blocks.enviroment.BiologicalStaticSpawner;
9+
import mindustry.Vars;
10+
import mindustry.game.EventType;
11+
import mindustry.gen.Building;
12+
import mindustry.gen.Groups;
13+
import mindustry.ui.fragments.MenuFragment;
14+
import mindustry.world.Tile;
15+
16+
public class BioEventHandler {
17+
public static BioResearchDialog researchDialog;
18+
public static void load() {
19+
researchDialog = new BioResearchDialog();
20+
}
21+
22+
public static void init() {
23+
Events.on(EventType.SectorCaptureEvent.class, event -> {
24+
for (Building building : Groups.build) {
25+
if (building instanceof BiologicalStaticSpawner.BiologicalStaticSpawnerBuild build) {
26+
Tile tile = build.tile;
27+
tile.remove();
28+
BioFx.immuneSpawnerExplode.at(tile);
29+
}
30+
}
31+
});
32+
33+
Events.on(EventType.WorldLoadEvent.class, you -> BioVars.postInit());
34+
}
35+
}

src/biotech/BioTech.java

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,17 @@
55
import arc.struct.Seq;
66
import arc.util.*;
77
import biotech.content.*;
8-
import biotech.ui.BioSpawnerDialog;
8+
import biotech.ui.BioStyles;
99
import biotech.ui.BioUI;
1010
import biotech.ui.ButtonPref;
11-
import biotech.world.blocks.enviroment.BiologicalStaticSpawner;
1211
import mindustry.Vars;
13-
import mindustry.audio.SoundControl;
14-
import mindustry.content.Planets;
1512
import mindustry.content.TechTree;
16-
import mindustry.core.World;
1713
import mindustry.ctype.UnlockableContent;
18-
import mindustry.game.EventType;
19-
import mindustry.game.EventType.*;
2014
import mindustry.game.Saves;
21-
import mindustry.game.Schematic;
22-
import mindustry.game.Schematics;
23-
import mindustry.gen.Building;
24-
import mindustry.gen.Groups;
2515
import mindustry.gen.Icon;
26-
import mindustry.gen.Unit;
2716
import mindustry.mod.*;
28-
import mindustry.type.UnitType;
29-
import mindustry.ui.dialogs.*;
30-
import mindustry.world.Tile;
3117
import biotech.gen.EntityRegistry;
3218

33-
import java.lang.reflect.InvocationTargetException;
34-
import java.lang.reflect.Method;
35-
3619
import static arc.Core.bundle;
3720
import static arc.Core.settings;
3821
import static mindustry.Vars.*;
@@ -42,17 +25,7 @@ public class BioTech extends Mod {
4225
public static Music mothersWail;
4326

4427
public BioTech() {
45-
Events.on(EventType.SectorCaptureEvent.class, event -> {
46-
for (Building building : Groups.build) {
47-
if (building instanceof BiologicalStaticSpawner.BiologicalStaticSpawnerBuild build) {
48-
Tile tile = build.tile;
49-
tile.remove();
50-
BioFx.immuneSpawnerExplode.at(tile);
51-
}
52-
}
53-
});
54-
55-
Events.on(EventType.WorldLoadEvent.class, you -> BioVars.postInit());
28+
BioEventHandler.init();
5629
}
5730

5831
@Override
@@ -66,7 +39,7 @@ public void loadContent() {
6639
BioBlocks.load();
6740
BioPlanets.load();
6841
BioSectorPresets.load();
69-
BioTechTree.load();
42+
AndoriTechTree.load();
7043
}
7144

7245
@Override
@@ -79,6 +52,11 @@ public void init() {
7952
loadMusic();
8053

8154
BioUI.load();
55+
56+
if (!Vars.headless) {
57+
BioStyles.load();
58+
BioEventHandler.load();
59+
}
8260
}
8361

8462
public static void loadMusic() {

0 commit comments

Comments
 (0)