// IOVisConnectedToNothing.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* Check whether this asset is currently connected as an indirect
* object to nothing by the specified verb.
* (This seems like an unlikely situation as of this writing,
* but is offered for completion with DOVisConnectedToNothing
* which does have at least one use case.)
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#IOVisConnectedToNothing
* @param {String} verb The name of a verb.
* @return {Boolean}
*/
p.IOVisConnectedToNothing = function Asset_IOVisConnectedToNothing(verb)
{
if( !verb || !this.game.dictionary.verbs[verb] ) return false;
if( !this.iov[verb]?.with_params.connections
|| -1 === this.iov[verb].with_params.connections.indexOf(null) )
{
return false;
}
return true;
}
}());