// inventory.js
// OK 09 2023
/**
*
*/
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class inventory
* @ajsnode game.dictionary.verbs.inventory
* @ajsconstruct MyGame.createVerb({ "name": "inventory", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb meaning list player's inventory.
* @ajssynonyms inventory, inv, i
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> inventory</span>
* You're carrying a brass lantern, a stick of chewing gum,
* a Faberge egg, a Kinder toy, a book of matches, a lipstick
* a slightly dented frog, an umbrella, a tire iron,
* a bubbling cauldron of cheese, a packet of croutons,
* a fondue fork, a pristine frog, and a tube of strawberry icing.
* </pre>
* <p>
* Return the player's <code>inventory</code>.
* </p>
*/
A.Preverbs.inventory = {
name: "inventory",
synonyms: ["inventory", "inv", "i"],
/**
* @ajsverbstructures
* @memberof inventory
*/
accepts_structures: ["verb"],
do: function () {
this.game.printPlayerInventory();
return true;
},
};
})();