// onChangeTemperature.js
(function () {
/* global adventurejs A */
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(
"L1490",
"log",
"medium",
this.name + " onChangeTemperature " + oldval + ", " + newval + ".",
"Tangible"
);
var results = this.doVerbAction({
action: "doChangeTemperature",
params: {
oldval: oldval,
newval: newval,
},
type: "VerbReaction",
});
if ("undefined" !== typeof results) return results;
return;
};
})();