Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// onChangeMoisture.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Tangible.prototype;	
  /**
  * Called when there is a change in moisture level, 
  * providing an opportunity to override default behavior 
  * through the use of
   * <a href="/doc/Scripting_VerbReactions.html">verb effect hook</a> 
   * doChangeMoisture.
   * @memberOf adventurejs.Tangible
	 * @method adventurejs.Tangible#onChangeMoisture
   * @param {Object} asset
   * @todo This should probably take a moisture value rather than an asset.
   */
   p.onChangeMoisture = function Tangible_onChangeMoisture(asset) 
   {
      this.game.log( "log", "medium", this.name + " onChangeMoisture " + "." , "Behavior" );
      var results = this.callAction('doChangeMoisture', asset.name, {} );
      if( "undefined" !== typeof results ) return results;            
      return;
   }
 }());