sword & mould score: sword score = mould score + crucible score - (mistake * 10)

This score is displayed over the title of mould, the mould panel title, and over the preform in stage == 2.

*mistakes are not tracked right now.
This commit is contained in:
Louis Hong
2024-10-28 01:32:24 -07:00
parent 2a821017f2
commit 475cb1c1f0
4 changed files with 126 additions and 5 deletions

View File

@@ -9,10 +9,8 @@ import static com.toofifty.easygiantsfoundry.enums.Stage.GRINDSTONE;
import static com.toofifty.easygiantsfoundry.enums.Stage.POLISHING_WHEEL;
import static com.toofifty.easygiantsfoundry.enums.Stage.TRIP_HAMMER;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.Value;
import net.runelite.api.Client;
import net.runelite.api.widgets.Widget;
@@ -40,6 +38,14 @@ public class EasyGiantsFoundryState
@Setter
private int smithsOutfitPieces;
@Setter
@Getter
private Integer mouldScore;
@Setter
@Getter
private Integer lastKnownCrucibleScore;
private final List<Stage> stages = new ArrayList<>();
private double heatRangeRatio = 0;
@@ -223,7 +229,7 @@ public class EasyGiantsFoundryState
return bronze + iron + steel + mithril + adamant + rune;
}
public double getCrucibleQuality()
public double getCrucibleScore()
{
// https://oldschool.runescape.wiki/w/Giants%27_Foundry#Metal_score