// getSubstanceAt.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#getSubstanceAt
* @returns {String}
*/
p.getSubstanceAt = function Tangible_getSubstanceAt(aspect) {
if (
this.hasAspectAt(aspect) &&
this.aspects[aspect].vessel.getVolume() > 0
) {
return this.aspects[aspect].vessel.substance_id;
}
return "";
}; // getSubstanceAt.js
})();