add stipend backoff timer to prevent repeated stipend attempts when server lies about quest readiness
Some checks failed
/ test (push) Failing after 18s

This commit is contained in:
Erik 2026-04-06 13:57:13 +02:00
parent b50a96957b
commit 67be466cdf
4 changed files with 234 additions and 6 deletions

View file

@ -94,6 +94,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]}
@ -362,6 +364,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}
@ -390,6 +395,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 nav1__stipend_nav {stipend.nav}
IF: All