Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getUnnestPreposition.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Character.prototype;	
  /**
   * Get preposition to be used when character is leaving the Aspect 
   * in which it is nested.
   * @memberOf adventurejs.Character
	 * @method adventurejs.Character#getUnnestPreposition
   * @returns {Object|Boolean}
   */
  p.getUnnestPreposition = function Character_getUnnestPreposition() 
  {
    var prep = this.game.dictionary.exit_prepositions[ this.getNestPreposition() ];
    if (prep) return prep;
    return false;
  }
}());