// onChangeTemperature.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Called when there is a change in temperature,
* providing an opportunity to override default behavior
* through the use of
* <a href="/doc/Scripting_VerbReactions.html">verb effect hook</a>
* doChangeTemperature.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#onChangeTemperature
*/
p.onChangeTemperature = function Tangible_onChangeTemperature(oldval, newval)
{
this.game.log( "log", "medium", this.name + " onChangeTemperature " + oldval + ", " + newval + "." , "Behavior" );
var results = this.callAction("doChangeTemperature", null, {"oldval":oldval,"newval":newval} );
if( "undefined" !== typeof results ) return results;
return;
}
}());