// getAnySubstanceThisContains.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Get the substance, if any, contained in this asset.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#getAnySubstanceThisContains
* @returns {String}
*/
p.getAnySubstanceThisContains =
function Tangible_getAnySubstanceThisContains() {
var aspect = this.getAspectWithVessel();
if (aspect && this.aspects[aspect].vessel.getVolume() > 0) {
return this.aspects[aspect].vessel.substance_id;
}
return "";
}; // getAnySubstanceThisContains.js
})();