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