fix stipend backoff: split into two safe rules, avoid iif (both branches always evaluate), remove debug lines
Some checks failed
/ test (push) Failing after 19s
Some checks failed
/ test (push) Failing after 19s
This commit is contained in:
parent
f8695b2275
commit
a58f8340ae
2 changed files with 71 additions and 33 deletions
11
af/bore.af
11
af/bore.af
|
|
@ -291,11 +291,15 @@ STATE: {service_decide} ~~ {
|
|||
DoExpr {clearvar[bellaBackoffClock]}
|
||||
IF: All
|
||||
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||
DO: ChatExpr {\/a [stipend-debug] clockExists=+testvar[stipendBackoffClock]+ elapsed=+iif[testvar[stipendBackoffClock],stopwatchelapsedseconds[getvar[stipendBackoffClock]],`none`]+ backoff=+getvar[stipendBackoffSeconds]+ guard=+isfalse[iif[testvar[stipendBackoffClock],stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds],0]]}
|
||||
Not Expr {testvar[stipendBackoffClock]}
|
||||
DO: SetState {service_stipend}
|
||||
IF: All
|
||||
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||
Expr {isfalse[iif[testvar[stipendBackoffClock], stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds], 0]]}
|
||||
DO: SetState {service_stipend}
|
||||
Expr {testvar[stipendBackoffClock]}
|
||||
Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]>=getvar[stipendBackoffSeconds]}
|
||||
DO: DoAll
|
||||
DoExpr {clearvar[stipendBackoffClock]}
|
||||
SetState {service_stipend}
|
||||
IF: All
|
||||
Expr {getvar[disableAugmentServices]!=1}
|
||||
ItemCountGE 1 {Blank Augmentation Gem}
|
||||
|
|
@ -324,7 +328,6 @@ STATE: {service_stipend} ~~ {
|
|||
Chat {/vt opt set enablenav true}
|
||||
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
|
||||
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
|
||||
ChatExpr {\/a [stipend-debug] clock created exists=+testvar[stipendBackoffClock]+ elapsed=+stopwatchelapsedseconds[getvar[stipendBackoffClock]]}
|
||||
DoExpr {touchvar[stipendNavLoaded]}
|
||||
EmbedNav nav0__stipend_nav {stipend.nav}
|
||||
IF: All
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue