Changed crucible quality to only display integers

This commit is contained in:
Louis Hong
2024-02-25 05:40:13 -08:00
parent 23752b2ef6
commit db62e7c655
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
if (event.getMenuOption().equals("Pour"))
{
// add persistent game message of the alloy value so user can reference later.
client.addChatMessage(ChatMessageType.GAMEMESSAGE, "", "The quality of the alloy poured is " + state.getCrucibleQuality(), null);
client.addChatMessage(ChatMessageType.GAMEMESSAGE, "", "The quality of the alloy poured is " + (int) state.getCrucibleQuality(), null);
}
}

View File

@@ -269,7 +269,7 @@ public class FoundryOverlay3D extends Overlay
{
return;
}
String text = String.format("%d/%d quality: %.1f", state.getCrucibleCount(), CRUCIBLE_CAPACITY, state.getCrucibleQuality());
String text = String.format("%d/%d quality: %d", state.getCrucibleCount(), CRUCIBLE_CAPACITY, (int)state.getCrucibleQuality());
LocalPoint crucibleLoc = crucible.getLocalLocation();
crucibleLoc = new LocalPoint(crucibleLoc.getX() - 100, crucibleLoc.getY());