Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// setIs.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Asset.prototype;

  /**
   * Set asset.is.state.
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#setIs
   * @param {Boolean} bool
   */
  p.setIs = function Asset_setIs(state, bool = true) {
    this.is[state] = bool;
    return this.is[state];
  };
})();