simplify bore stuck handling to navbore recovery
All checks were successful
/ test (push) Successful in 32s
All checks were successful
/ test (push) Successful in 32s
This commit is contained in:
parent
d989f54672
commit
af672e6a3b
3 changed files with 260 additions and 125 deletions
30
bore/bore.af
30
bore/bore.af
|
|
@ -73,12 +73,10 @@ STATE: {hunt} ~~ {
|
|||
DO: DoAll
|
||||
Chat {/a Out of inventory slots! Recomping.}
|
||||
SetState {recomp}
|
||||
IF: Always
|
||||
DO: SetWatchdog 3 120 {stuck}
|
||||
IF: Always
|
||||
DO: SetWatchdog 3 600 {really_stuck}
|
||||
IF: DistToRteGE 1000
|
||||
DO: SetState {really_stuck}
|
||||
IF: Always
|
||||
DO: SetWatchdog 3 120 {navbore}
|
||||
IF: DistToRteGE 1000
|
||||
DO: SetState {navbore}
|
||||
IF: All
|
||||
Expr {setvar[nearPortal, wobjectfindnearestbyobjectclass[14]]}
|
||||
Expr {istrue[getvar[nearPortal]]}
|
||||
|
|
@ -197,14 +195,7 @@ STATE: {navbore} ~~ {
|
|||
ChatExpr {\/vt nav load bore_circuit+getvar[navNumber]}
|
||||
SetState {hunt}
|
||||
~~ }
|
||||
STATE: {really_stuck} ~~ {
|
||||
IF: Always
|
||||
DO: DoAll
|
||||
Chat {/vt opt set enablecombat false}
|
||||
SetState {navbore}
|
||||
Chat {/a Help me Jeebus, i'm in whirlwind of vortexes}
|
||||
~~ }
|
||||
STATE: {recomp} ~~ {
|
||||
STATE: {recomp} ~~ {
|
||||
IF: NavEmpty
|
||||
DO: SetState {navbore}
|
||||
IF: Always
|
||||
|
|
@ -221,16 +212,7 @@ STATE: {ring_fail} ~~ {
|
|||
Chat {/vt opt set enablecombat false}
|
||||
SetWatchdog 100 3 {hunt}
|
||||
~~ }
|
||||
STATE: {stuck} ~~ {
|
||||
IF: Always
|
||||
DO: DoAll
|
||||
Chat {/vt opt set enablenav false}
|
||||
Chat {/vt reverseroute}
|
||||
ChatExpr {\/vt nav load bore_circuit+getvar[navNumber]}
|
||||
Chat {/vt opt set enablenav true}
|
||||
SetState {hunt}
|
||||
~~ }
|
||||
STATE: {loot} ~~ {
|
||||
STATE: {loot} ~~ {
|
||||
IF: Always
|
||||
DO: DoAll
|
||||
Chat {/vt opt set enablelooting true}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue