Add bonus action tracker
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user