Adds consideration to the number of Smith's Outfit pieces currently worn by the player.

This commit is contained in:
Tal Skverer
2024-06-30 11:48:59 +03:00
parent 42a7260b81
commit 30ef327abb
2 changed files with 46 additions and 5 deletions

View File

@@ -29,6 +29,9 @@ public class EasyGiantsFoundryState
@Getter
private boolean enabled;
@Setter
private int smithsOutfitPieces;
private final List<Stage> stages = new ArrayList<>();
private double heatRangeRatio = 0;
@@ -241,7 +244,9 @@ public class EasyGiantsFoundryState
double progressTillNext = progressPerStage - progress % progressPerStage;
Stage current = getCurrentStage();
return (int) Math.ceil(progressTillNext / current.getProgressPerAction());
// Each Smith's Outfit piece adds 20% chance to increase action progress by 1, or 100% for all 4 pieces.
double smithsOutfitBonus = smithsOutfitPieces == 4 ? 1 : 0.2 * smithsOutfitPieces;
return (int) Math.ceil(progressTillNext / (current.getProgressPerAction() + smithsOutfitBonus));
}
public int[] getCurrentHeatRange()