Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// Pedestal.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Furniture.Pedestal
   * @augments adventurejs.Furniture
   * @class adventurejs.Pedestal
   * @ajsconstruct MyGame.createAsset({ "class":"Pedestal", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading FurnitureClasses
   * @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 A thing on which to put other things.
   * @tutorial Tangibles_AboutTangibles
   * @ajstangiblecontainer on
   * @classdesc <strong>Pedestal</strong> is child class of
   * {@link adventurejs.Furniture|Furniture}. Put things on it.
   **/
  class Pedestal extends adventurejs.Furniture {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Pedestal";

      this.noun = "pedestal";
      this.plural = "pedestals";
      this.singlePluralPairs = [["pedestal", "pedestals"]];
      this.default_aspect = "on";
      this.aspects.on.set({
        maxcount: 1,
        player: { can: { enter: false } },
      });
    }
  }
  adventurejs.Pedestal = Pedestal;
})();