Add danger-aware companion selection and native survival assistance
Core tests / core (push) Successful in 39s
Core tests / core (push) Successful in 39s
This commit is contained in:
@@ -36,6 +36,7 @@ export function activityReason(b:Bot,now:number){
|
||||
const w=b.world,action=b.lastDecision?.action;
|
||||
if(b.status!=='online')return {label:b.status,detail:'This resident is not currently online.'};
|
||||
if(!w||now-w.at>120)return {label:'Telemetry delayed',detail:'Current activity cannot be confirmed from stale observations.'};
|
||||
if(w.survivalAt&&now-w.survivalAt<30&&w.survivalAction)return {label:w.survivalAction,detail:'Native survival assistance requested this action. Completion remains determined by game observations.'};
|
||||
if(w.inCombat)return {label:'In combat',detail:'The game reports active combat. Recovery is skipped.'};
|
||||
if(w.casting)return {label:'Casting',detail:'The game reports a spell cast. Recovery is skipped.'};
|
||||
if(w.taxi)return {label:'Traveling by taxi',detail:'The game reports taxi travel. Recovery is skipped.'};
|
||||
|
||||
Reference in New Issue
Block a user