// doesContainSubstanceAt.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Check whether this asset contains the specified substance.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#doesContainSubstanceAt
* @param {String} id
* @param {String} aspect
* @returns {Boolean}
*/
p.doesContainSubstanceAt = function Tangible_doesContainSubstanceAt(
id,
aspect
) {
if (!id) return false;
if (!aspect) return false;
if (!this.aspects[aspect]) return false;
if (!this.aspects[aspect].vessel) return false;
if (id === this.aspects[aspect].vessel.substance_id) return true;
return false;
}; // doesContainSubstanceAt.js
})();