add stipend backoff timer to aphus
Some checks failed
/ test (push) Failing after 17s

This commit is contained in:
Erik 2026-04-06 13:59:07 +02:00
parent 67be466cdf
commit edb5de94a0
2 changed files with 117 additions and 3 deletions

View file

@ -127,6 +127,8 @@ STATE: {Default} ~~ {
DO: DoExpr {setvar[bellaJawRunRecoverAttempts, 0]}
IF: Not Expr {testvar[bellaBackoffSeconds]}
DO: DoExpr {setvar[bellaBackoffSeconds, 86400]}
IF: Not Expr {testvar[stipendBackoffSeconds]}
DO: DoExpr {setvar[stipendBackoffSeconds, 86400]}
IF: Not Expr {testvar[serviceCheckInterval]}
DO: DoExpr {setvar[serviceCheckInterval, 43200]}
IF: Not Expr {testvar[serviceClock]}
@ -231,6 +233,9 @@ STATE: {service_decide} ~~ {
DoExpr {clearvar[bellaBackoffClock]}
IF: All
Expr {getqueststatus[`stipendtimer_0812`]==1}
Not All
Expr {testvar[stipendBackoffClock]}
Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]}
DO: SetState {service_stipend}
IF: All
Expr {getvar[disableAugmentServices]!=1}
@ -258,6 +263,8 @@ STATE: {service_stipend} ~~ {
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablelooting false}
Chat {/vt opt set enablenav true}
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
DoExpr {touchvar[stipendNavLoaded]}
EmbedNav nav0__stipend_nav {stipend.nav}
IF: All