NGU-scripts icon indicating copy to clipboard operation
NGU-scripts copied to clipboard

Improve inventory logic

Open kujan opened this issue 6 years ago • 0 comments

I added some rudimentary logic to detect how many inventory pages were unlocked in the glop script, in hindsight this should be added to the Inventory class instead, because it can be used in the questing logic to avoid only using page 1.

Navigation.menu("inventory")
for btn in coords.INVENTORY_PAGE:
    res = Inputs.check_pixel_color(*btn, coords.COLOR_INVENTORY_BG)
    if not res:
        Glop.inv_pages_unlocked += 1

kujan avatar Dec 08 '19 16:12 kujan