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

Commit e435f7c

Browse files
committed
e
1 parent 2d96b7e commit e435f7c

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

src/biotech/world/blocks/production/BoostableDrill.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
import arc.math.geom.Point2;
55
import arc.util.Log;
66
import mindustry.game.Team;
7+
import mindustry.gen.Building;
78
import mindustry.type.Item;
89
import mindustry.world.Edges;
910
import mindustry.world.Tile;
1011
import mindustry.world.blocks.production.Drill;
1112

13+
import static mindustry.Vars.world;
14+
1215
public 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
}

0 commit comments

Comments
 (0)