Fix: Missing inv on synthesize_rarity_resin call

This commit is contained in:
LmeSzinc 2024-06-18 19:57:19 +08:00
parent 2c2e77063c
commit 1f06e7a32a

View File

@ -181,7 +181,7 @@ class Synthesize(CombatObtain, ItemUI):
return switched
def synthesize_rarity_reset(self, inv=None, skip_first_screenshot=True):
def synthesize_rarity_reset(self, inv, skip_first_screenshot=True):
"""
Reset rarity switch, so current item will pin on the first row
@ -322,7 +322,7 @@ class Synthesize(CombatObtain, ItemUI):
if next_row is None:
if inv.selected.loca[1] >= 3:
logger.info('Reached inventory view end, reset view')
self.synthesize_rarity_reset()
self.synthesize_rarity_reset(inv=inv)
logger.hr('Synthesize select view', level=2)
continue
else: