// onChangeGravity.js
(function () {
/* global adventurejs A */
var p = adventurejs.Tangible.prototype;
/**
* Called when there is a change in gravity,
* providing an opportunity to override default behavior
* through the use of
* <a href="/doc/Scripting_VerbReactions.html">verb effect hook</a>
* doChangeGravity.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#onChangeGravity
*/
p.onChangeGravity = function Tangible_onChangeGravity(oldval, newval) {
this.game.log(
"L1461",
"log",
"medium",
this.name + " onChangeGravity " + oldval + ", " + newval + ".",
"Tangible"
);
var results = this.doVerbAction({
action: "doChangeGravity",
params: {
oldval: oldval,
newval: newval,
},
type: "VerbReaction",
});
if ("undefined" !== typeof results) return results;
return;
};
})();