add diamondMissing calculation to recomp state in bore and neftet
All checks were successful
/ test (push) Successful in 20s

Sets diamondMissing = 100 - diamond scarabs in inventory (clamped to 0)
before loading recomp nav, so ah_recomp/ah_rarecomp can report missing
diamonds to Nyckelmonster.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-03-16 20:07:56 +01:00
parent 3a21056eb7
commit 63199f62f3
4 changed files with 58 additions and 2 deletions

View file

@ -1062,6 +1062,8 @@ STATE: {recomp} ~~ {
DO: SetWatchdog 3 300 {navbore}
IF: Always
DO: DoAll
DoExpr {setvar[diamondMissing, 100 - getitemcountininventorybyname[`Diamond Scarab`]]}
DoExpr {ifthen[$diamondMissing < 0, `setvar[diamondMissing, 0]`]}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing false}
Chat {/vt nav load ah_rarecomp}

View file

@ -1169,6 +1169,8 @@ STATE: {recomp} ~~ {
DO: SetState {death}
IF: Always
DO: DoAll
DoExpr {setvar[diamondMissing, 100 - getitemcountininventorybyname[`Diamond Scarab`]]}
DoExpr {ifthen[$diamondMissing < 0, `setvar[diamondMissing, 0]`]}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing false}
Chat {/vt nav load ah_recomp}