Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getDirection.js

(function() {
  /*global adventurejs A*/ 
  "use strict";

	var p = adventurejs.Dictionary.prototype;

  /**
   * Takes a plural pronoun token and converts to the equivalent 
   * person pronoun according to game.settings.person.
   * @memberOf adventurejs.Dictionary
   * @method adventurejs.Dictionary#getPronoun
   * @kind function
   * @param {String} pronoun
   * @ajsinternal
   */
  p.getPronoun = function Dictionary_getPronoun(pronoun) 
  {
    return this.pronouns[this.game.settings.person]?.[pronoun];
  }
  
}());