Skip to content

Commit

Permalink
Update ConfigurableDrill.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzCraft authored Mar 4, 2025
1 parent 00fc3ce commit fbd1775
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/epsilon/world/blocks/production/ConfigurableDrill.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ public class ConfigurableDrill extends Drill{
public float efficiency1 = 0.5f;
public float efficiency2 = 1f;
public float efficiency3 = 2f;
public String button1Name = "0.5x";
public String button2Name = "1x";
public String button3Name = "2x";


public ConfigurableDrill(String name){
super(name);
Expand Down Expand Up @@ -49,19 +53,19 @@ public void updateTile(){

@Override
public void buildConfiguration(Table table){
table.button(efficiency1.toString() + "x", () -> {
table.button(button1Name, () -> {
eff1 = true;
eff2 = false;
eff3 = false;
deselect();
}).pad(20f).size(40f);
table.button(efficiency2.toString() + "x", () -> {
table.button(button2Name, () -> {
eff1 = false;
eff2 = true;
eff3 = false;
deselect();
}).size(40f);
table.button(efficiency3.toString() + "x", () -> {
table.button(button3Name, () -> {
eff1 = false;
eff2 = false;
eff3 = true;
Expand Down

0 comments on commit fbd1775

Please sign in to comment.