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

  /**
   * @augments {adventurejs.Verb}
   * @class nothing
   * @ajsnode game.dictionary.verbs.nothing
   * @ajsconstruct MyGame.createVerb({ "name": "nothing", [...] });
   * @ajsconstructedby adventurejs.Dictionary#createVerb
   * @hideconstructor
   * @ajsinstanceof Verb
   * @ajsnavheading UtilityVerbs
   * @summary Verb meaning do nothing (expends a turn).
   * @tutorial Scripting_VerbSubscriptions
   * @tutorial Verbs_VerbAnatomy
   * @tutorial Verbs_VerbProcess
   * @tutorial Verbs_ModifyVerbs
   * @tutorial Verbs_WriteVerbs
   * @classdesc
   * <pre class="display border outline">
   * <span class="input">&gt; nothing</span>
   * You do nothing.
   * </pre>
   * <p>
   * <strong>Nothing</strong> does nothing. Similar to
   * {@link wait}.
   * </p>
   */
  A.Preverbs.nothing = {
    name: "nothing",
    prettyname: "nothing",
    synonyms: ["nothing"],

    /**
     * @ajsverbstructures
     * @memberof nothing
     */
    accepts_structures: ["verb"],

    do: function () {
      var input = this.game.getInput();
      var msg = "$(We) do nothing.";
      if (msg) this.game.print(msg, input.output_class);
      return;
    },
  };
})();