Fix progression stalls and add normal class trainer visits
Core tests / core (push) Successful in 29s
Core tests / core (push) Successful in 29s
This commit is contained in:
@@ -8,7 +8,7 @@ test('inference preserves intervening observations and cancels after retirement'
|
||||
const now=Date.now();
|
||||
const bot={id:'hero',name:'Zaku',status:'online',tier:'hero',decisions:0,
|
||||
personality:{activities:['explore']},autonomy:{managed:true},level:5,zone:'Old zone'};
|
||||
let state={revision:1,bots:[bot],events:[],sequence:0,settings:{}};
|
||||
let state={revision:1,bots:[bot],events:[],sequence:0,settings:{hardcore:{enabled:false}}};
|
||||
const store={load:async()=>structuredClone(state),save:async(s,revision)=>{
|
||||
assert.equal(revision,state.revision);state=s;
|
||||
}};
|
||||
@@ -29,3 +29,9 @@ test('inference preserves intervening observations and cancels after retirement'
|
||||
assert.equal((await runLiveAutonomyTick(store,{}, {},{now,forceBotId:'hero'})).ran,false);
|
||||
assert.equal(queued,1);
|
||||
});
|
||||
|
||||
test('rest requests never enable indefinite stay',()=>{
|
||||
const {compileLivePlayerbotIntent}=require('../.test-build/autonomy.js');
|
||||
const source=compileLivePlayerbotIntent('A',{action:'rest',goal:'Recover',reason:'Tired'});
|
||||
assert.doesNotMatch(source,/\+stay/);assert.match(source,/-stay/);assert.match(source,/GetHealthPct/);assert.match(source,/AzerothAITrainingOverride/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user