snuck in consume command

This commit is contained in:
MaxRobinsonTheGreat 2024-10-16 18:56:21 -05:00
parent a467bdf357
commit 4d23a0b0a2

View file

@ -148,6 +148,15 @@ export const actionsList = [
await skills.giveToPlayer(agent.bot, item_name, player_name, num);
})
},
{
name: '!consume',
description: 'Eat/drink the given item.',
params: {'item_name': { type: 'ItemName', description: 'The name of the item to consume.' }},
perform: wrapExecution(async (agent, item_name) => {
await agent.bot.consume(item_name);
skills.log(agent.bot, `Consumed ${item_name}.`);
})
},
{
name: '!equip',
description: 'Equip the given item.',