iutils: adjust buying logic
This commit is contained in:
parent
1919e9bdab
commit
2601023e24
|
@ -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"
|
||||
|
|
|
@ -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
Binary file not shown.
Loading…
Reference in New Issue