mould/preform score: unboxed Integer into int using -1 representing unset state (instead of null).

This commit is contained in:
Louis Hong
2024-10-29 03:27:36 -07:00
parent c7317befa0
commit f1edc659fa
2 changed files with 4 additions and 4 deletions

View File

@@ -40,11 +40,11 @@ public class EasyGiantsFoundryState
@Setter
@Getter
private Integer mouldScore;
private int mouldScore = -1; // starts -1 because mould score is unknown
@Setter
@Getter
private Integer lastKnownCrucibleScore;
private int lastKnownCrucibleScore = -1; // will be set when "Pour"ed
private final List<Stage> stages = new ArrayList<>();
private double heatRangeRatio = 0;