Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getModifiedDescription.js
(function () {
  /* global AdventureJS A */
  var p = AdventureJS.Assets.Asset.prototype;
  /**
   * Get a modified description for an identifier on this asset.
   * This is a convenience shortcut to game.getModifiedDescription().
   * @memberOf AdventureJS.Assets.Asset
   * @method AdventureJS.Assets.Asset#getModifiedDescription
   * @param {String} identifier An aspect or other identifier.
   * @return {String}
   */
  p.getModifiedDescription = function Asset_getDescription(identifier) {
    return this.game.getModifiedDescription({
      asset: this,
      identifier: identifier,
    });
  };
})();