add diamondMissing calculation to recomp state in bore and neftet
All checks were successful
/ test (push) Successful in 20s
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:
parent
3a21056eb7
commit
63199f62f3
4 changed files with 58 additions and 2 deletions
|
|
@ -1062,6 +1062,8 @@ STATE: {recomp} ~~ {
|
||||||
DO: SetWatchdog 3 300 {navbore}
|
DO: SetWatchdog 3 300 {navbore}
|
||||||
IF: Always
|
IF: Always
|
||||||
DO: DoAll
|
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 enablecombat false}
|
||||||
Chat {/vt opt set enablebuffing false}
|
Chat {/vt opt set enablebuffing false}
|
||||||
Chat {/vt nav load ah_rarecomp}
|
Chat {/vt nav load ah_rarecomp}
|
||||||
|
|
|
||||||
|
|
@ -1169,6 +1169,8 @@ STATE: {recomp} ~~ {
|
||||||
DO: SetState {death}
|
DO: SetState {death}
|
||||||
IF: Always
|
IF: Always
|
||||||
DO: DoAll
|
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 enablecombat false}
|
||||||
Chat {/vt opt set enablebuffing false}
|
Chat {/vt opt set enablebuffing false}
|
||||||
Chat {/vt nav load ah_recomp}
|
Chat {/vt nav load ah_recomp}
|
||||||
|
|
|
||||||
28
met/bore.met
28
met/bore.met
|
|
@ -9979,7 +9979,33 @@ K
|
||||||
V
|
V
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
3
|
5
|
||||||
|
i
|
||||||
|
7
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
setvar[diamondMissing, 100 - getitemcountininventorybyname[`Diamond Scarab`]]
|
||||||
|
i
|
||||||
|
7
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
ifthen[$diamondMissing < 0, `setvar[diamondMissing, 0]`]
|
||||||
i
|
i
|
||||||
2
|
2
|
||||||
s
|
s
|
||||||
|
|
|
||||||
|
|
@ -10993,7 +10993,33 @@ K
|
||||||
V
|
V
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
4
|
6
|
||||||
|
i
|
||||||
|
7
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
setvar[diamondMissing, 100 - getitemcountininventorybyname[`Diamond Scarab`]]
|
||||||
|
i
|
||||||
|
7
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
ifthen[$diamondMissing < 0, `setvar[diamondMissing, 0]`]
|
||||||
i
|
i
|
||||||
2
|
2
|
||||||
s
|
s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue