// Shovel.js
(function () {
/*global adventurejs A*/
/**
* @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Handtool.Shovel
* @augments adventurejs.Handtool
* @class adventurejs.Shovel
* @ajsconstruct MyGame.createAsset({ "class":"Shovel", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsnavheading ToolClasses
* @param {String} game_name The name of the top level game object.
* @param {String} name A name for the object, to be serialized and used as ID.
* @summary Lockpicks can be used to pick locks.
* @classdesc
* <p>
* <strong>Shovel</strong> is a subclass of
* {@link adventurejs.Handtool|Handtool} that
* can be used to dig or hit.
* </p>
* <pre class="display"><code class="language-javascript">MyGame.createAsset({
* class: "Shovel",
* name: "trench shovel",
* place: { in: "Garden Shed" },
* });
* </code></pre>
**/
class Shovel extends adventurejs.Handtool {
constructor(name, game_name) {
super(name, game_name);
this.class = "Shovel";
this.singlePluralPairs = [["shovel", "shovels"]];
this.setIOVs(["dig", "hit"]);
}
}
adventurejs.Shovel = Shovel;
})();