Closed riwu closed 12 years ago
I prefer FunctionX(); over Functionx;
I had thought the extra parenthesis looks weird. Reverted it, just update the spin ticket.
What is checkInv? I can't find it anywhere in SRL.
It is the parameter of _FindAllRandoms.
FindSpinTicket searches for the spin ticket DTM in inventory (i'm not sure why it also says it exits the squeal pop up, because that's what ExitSquealOfFortune does), and it doesn't check whether we are currently on tab_Inv, likely because it is called after those inv random checks. But if checkInv is false (i.e. FindNonInventoryRandoms is called instead as the scripter do not want to switch to tab_Inv), it shouldn't be called (since it belongs to isInvRandom).
Another solution would be to add if (GetCurrentTab <> tab_Inv) then Exit; to FindSpinTicket. But it just makes no sense currently to continue with FindSpinTicket even when we are not at tab_Inv.
Ah okay. Nice catch.
Skip findSpinTicket if checkInv is true (for efficiency) Remove unnecessary parenthesis (what are they for?)