// IOVisConnectedToAnything.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* Check whether this asset is currently connected to anything
* indirectly by a verb such as <code class="property">plugIn</code>
* or <code class="property">tie</code>. For example, if this asset
* is an outlet with a computer plugged into it, this method would return true.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#IOVisConnectedToAnything
* @param {String} verb The name of a verb.
* @return {Boolean}
*/
p.IOVisConnectedToAnything = function Asset_IOVisConnectedToAnything(verb)
{
if( !verb || !this.game.dictionary.verbs[verb] ) return false;
if( this.iov[verb]?.with_params.connections?.length )
{
return true;
}
return false;
}
}());