This repository was archived by the owner on Jan 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/biotech/world/blocks/production Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import arc .math .geom .Point2 ;
55import arc .util .Log ;
66import mindustry .game .Team ;
7+ import mindustry .gen .Building ;
78import mindustry .type .Item ;
89import mindustry .world .Edges ;
910import mindustry .world .Tile ;
1011import mindustry .world .blocks .production .Drill ;
1112
13+ import static mindustry .Vars .world ;
14+
1215public class BoostableDrill extends Drill {
1316
1417 public BoostableDrill (String name ) {
@@ -30,7 +33,7 @@ public boolean canMine(Tile tile) {
3033 public int checkBooster (Tile tile ) {
3134 int boost = 0 ;
3235 for (Point2 edge : Edges .getEdges (this .size )) {
33- //what am i doing with my life
36+ //what am I doing with my life
3437 if (tile .build == null ) continue ;
3538 if (tile .build .tile .nearby (edge ).build == null ) continue ;
3639 if (tile .build .tile .nearby (edge ).build instanceof DrillUpgrader .DrillUpgraderBuild build ) {
@@ -39,4 +42,18 @@ public int checkBooster(Tile tile) {
3942 }
4043 return boost ;
4144 }
45+
46+ public class BoostableDrillBuild extends DrillBuild {
47+
48+ public int lastChange = -2 ;
49+
50+ @ Override
51+ public void updateTile () {
52+ super .updateTile ();
53+ if (lastChange != world .tileChanges ) {
54+ lastChange = world .tileChanges ;
55+ countOre (tile );
56+ }
57+ }
58+ }
4259}
You can’t perform that action at this time.
0 commit comments