// hasDescription.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* See if asset has a description for an aspect,
* such as "look in book", where
* "in" has been defined as a key at
* asset.descriptions.in.
* "look" is always the default description.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#hasDescription
* @param {String} description
* @return {String|Boolean}
*/
p.hasDescription = function Asset_hasDescription( description )
{
description = description || "look";
if( this.descriptions[ description ] )
{
return true;
}
return false;
}
}());