Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// $must.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Asset.prototype;

  /**
   * <strong>$must()</strong> is a general method for
   * getting at asset properties stored in asset.must.
   * @method adventurejs.Asset#$must
   * @memberOf adventurejs.Asset
   */
  p.$must = function Asset_must(property, asset) {
    if (!property || !asset) return false;
    return asset.must[property] ? true : false;
  };
})();