Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// doesContainAnySubstance.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Check whether this asset contains any substance.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#doesContainAnySubstance
   * @returns {Boolean}
   */
  p.doesContainAnySubstance = function Tangible_doesContainAnySubstance() {
    var aspect = this.getAspectWithVessel();
    if (aspect && this.aspects[aspect].vessel.getVolume() > 0) {
      return true;
    }
    return false;
  }; // doesContainAnySubstance.js
})();