add manaMissing calculation to recomp_mana state (mirrors bore.af diamondMissing)
All checks were successful
/ test (push) Successful in 27s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-03-17 23:23:44 +01:00
parent d308c0c118
commit 2a93127c68
2 changed files with 40 additions and 2 deletions

View file

@ -150,7 +150,10 @@ STATE: {recomp_mana} ~~ {
Chat {/a [motes] Timeout reaching recomp mana. Resetting.} Chat {/a [motes] Timeout reaching recomp mana. Resetting.}
SetState {Default} SetState {Default}
IF: Always IF: Always
DO: Chat {/vt opt set enablenav true} DO: DoAll
DoExpr {setvar[manaMissing, 100 - getitemcountininventorybyname[`Mana Scarab`]]}
DoExpr {ifthen[$manaMissing < 0, `setvar[manaMissing, 0]`]}
Chat {/vt opt set enablenav true}
~~ } ~~ }
STATE: {hand_in_nugget} ~~ { STATE: {hand_in_nugget} ~~ {
IF: Death IF: Death

View file

@ -931,9 +931,44 @@ recomp_mana
i i
1 1
i i
2 3
i i
0 0
TABLE
2
K
V
n
n
3
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[manaMissing, 100 - getitemcountininventorybyname[`Mana Scarab`]]
i
7
TABLE
2
k
v
n
n
1
s
e
s
ifthen[$manaMissing < 0, `setvar[manaMissing, 0]`]
i
2
s s
/vt opt set enablenav true /vt opt set enablenav true
s s