trigger goal to start

This commit is contained in:
Kolby Nottingham 2024-05-04 14:41:02 -07:00
parent 385c46bf35
commit 74156d118d

View file

@ -230,6 +230,7 @@ export const actionsList = [
},
perform: async function (agent, name=null, quantity=1) {
await agent.npc.setGoal(name, quantity);
agent.bot.emit('idle'); // to trigger the goal
return 'Set goal: ' + agent.npc.data.curr_goal.name;
}
}