add manaMissing calculation to recomp_mana_scarab in bore and neftet
All checks were successful
/ test (push) Successful in 23s

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

View file

@ -1080,6 +1080,8 @@ STATE: {recomp_mana_scarab} ~~ {
DO: SetState {death}
IF: Always
DO: DoAll
DoExpr {setvar[manaMissing, 100 - getitemcountininventorybyname[`Mana Scarab`]]}
DoExpr {ifthen[$manaMissing < 0, `setvar[manaMissing, 0]`]}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing false}
Chat {/vt opt set NavCloseStopRange 0.00425}

View file

@ -1199,6 +1199,8 @@ STATE: {recomp_mana_scarab} ~~ {
DO: SetState {death}
IF: Always
DO: DoAll
DoExpr {setvar[manaMissing, 100 - getitemcountininventorybyname[`Mana Scarab`]]}
DoExpr {ifthen[$manaMissing < 0, `setvar[manaMissing, 0]`]}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing false}
Chat {/vt opt set NavCloseStopRange 0.00425}

View file

@ -10119,7 +10119,33 @@ K
V
n
n
4
6
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

View file

@ -11225,7 +11225,33 @@ K
V
n
n
4
6
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