Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// IOVallowWithAnything.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * <strong>IOVallowWithAnything</strong> is a method 
   * to check whether this asset is subscribed to act
   * as an indirect object with the specified verb and any direct object.
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#IOVallowWithAnything
   * @param {String} verb
   * @returns {Boolean}
   */
  p.IOVallowWithAnything = function Asset_isIOVWithAnything(verb)
  {
    if( !verb || !this.game.dictionary.verbs[verb] ) return false;
    if(!this.isIOV(verb)) return false;
    if( !this.iov[verb].with_anything ) return false;
    return true;
  }
}());