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:
@@ -28,3 +28,9 @@ test('monitor distinguishes mana recovery, named leader and ghost state',()=>{
|
||||
b.world.survivalAction='regroup requested';b.world.leaderName='Zaku';assert.equal(activityReason(b,now).label,'Catching up to Zaku');
|
||||
b.world.isGhost=true;assert.equal(activityReason(b,now).label,'Recovering as a ghost');
|
||||
});
|
||||
|
||||
test('trainer activity reports pending work and verified learning separately',()=>{
|
||||
const b=bot();Object.assign(b.world,{trainingAt:now,trainingLevel:8,trainingPending:3,trainingLearned:2,trainingTrainer:'Teacher',trainingStatus:'traveling'});
|
||||
const a=activityReason(b,now);assert.equal(a.label,'Visiting class trainer');assert.match(a.detail,/3 identified spells pending, 2 verified trainer purchases/);
|
||||
b.world.inCombat=true;assert.equal(activityReason(b,now).label,'In combat');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user