Add bonus action tracker

This commit is contained in:
geeckon
2024-02-10 23:44:37 +02:00
parent b08dab0192
commit 64d3c5c121
4 changed files with 48 additions and 1 deletions

View File

@@ -50,6 +50,9 @@ public class EasyGiantsFoundryState
@Getter
private boolean enabled;
@Getter
private int bonusActionsReceived = 0;
private final List<Stage> stages = new ArrayList<>();
private double heatRangeRatio = 0;
@@ -57,6 +60,7 @@ public class EasyGiantsFoundryState
{
stages.clear();
heatRangeRatio = 0;
bonusActionsReceived = 0;
}
public int getHeatAmount()
@@ -204,4 +208,18 @@ public class EasyGiantsFoundryState
else
return 0;
}
public int getBonusActionsExpected()
{
if (getStages().size() >= 6) {
return 3;
}
return 2;
}
public void addBonusActionReceived()
{
++bonusActionsReceived;
}
}