iutils: adjust buying logic

This commit is contained in:
illumineawake 2021-08-08 22:58:59 +10:00
parent 1919e9bdab
commit 2601023e24
4 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.3.5"
version = "4.3.6"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -45,7 +45,7 @@ public class GrandExchange {
* Buys items from GE, if prices are over 8000GP it will progressively buy, otherwise attempts to buy instantly
* */
public void buy(int item, int quantity) {
if (GrandExchangePrices.get(item).high > 1000) {
if (GrandExchangePrices.get(item).high * quantity > 1000) {
if (!buyProgressively(item, quantity,1.2, 30, 20)) {
throw new AssertionError("Failed to buy GE item progressively");
}

File diff suppressed because one or more lines are too long