From 7705d17c275736913caa8e8e8d9419d4bded1f92 Mon Sep 17 00:00:00 2001 From: SomeoneWithAnInternetConnection <34518321+SomeoneWithAnInternetConnection@users.noreply.github.com> Date: Sat, 3 Feb 2018 21:44:22 -0500 Subject: [PATCH] Rename progress to state in GrandExchangeOffer The field formerly known as "progress" encoded what state the offer was in which is a weird 4-bit thing that includes information about whether the offer is a buy or sell offer, whether it's finished, and some other, less well-defined info about (what seems to be) the offer's live-ness. How close an offer is to being finished (ie its progress) is only really based on how many items have bought/sold out of the total amount requested/offered. --- .../main/java/net/runelite/rs/api/RSGrandExchangeOffer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runescape-api/src/main/java/net/runelite/rs/api/RSGrandExchangeOffer.java b/runescape-api/src/main/java/net/runelite/rs/api/RSGrandExchangeOffer.java index 572718976d..eb505f9367 100644 --- a/runescape-api/src/main/java/net/runelite/rs/api/RSGrandExchangeOffer.java +++ b/runescape-api/src/main/java/net/runelite/rs/api/RSGrandExchangeOffer.java @@ -43,6 +43,7 @@ public interface RSGrandExchangeOffer @Import("spent") int getSpent(); - @Import("progress") - byte getProgress(); + @Import("state") + byte getRSState(); + }