// unquiet.js
(function () {
/* global adventurejs A */
/**
* @augments {adventurejs.Verb}
* @class unquiet
* @ajsnode game.dictionary.verbs.unquiet
* @ajsconstruct MyGame.createVerb({ "name": "unquiet", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb meaning to unquiet random events. It's up to authors whether to use it.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="ajs-player-input">> unquiet</span>
* Ok, I'll stop suppressing random events.
* </pre>
* <p>
* <strong>unquiet</strong> allows a player to disable
* suppression of random ambient events if the author has
* provided support for it.
* </p>
*/
A.Preverbs.unquiet = {
name: "unquiet",
synonyms: ["unquiet"],
/**
* @ajsverbstructures
* @memberof unquiet
*/
accepts_structures: ["verb"],
do: function () {
var input = this.game.getInput();
this.game.settings.quiet = false;
var msg = "Ok, I'll stop suppressing random events. ";
if (msg) this.game.print(msg, input.output_class);
return true;
},
};
})();