// onUnnestThatFromThis.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Called when player is unnested from this asset.
* Provides an opportunity to override default behavior
* through the use of
* <a href="/doc/Scripting_VerbReactions.html">verb reactions</a>
* doUnnestThatFromThis.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#onUnnestThatFromThis
* @param {Object} player
* @returns {Boolean}
*/
p.onUnnestThatFromThis = function Tangible_onUnnestThatFromThis( player )
{
this.game.log( "log", "high", this.name + " onUnnestThatFromThis " + player.name + "." , 'Behavior' );
var results;
if( this.is.rideable
&& this.isIn( player ) )
{
results = player.onRemoveThatFromThis( this );
if( "undefined" !== typeof results ) return results;
}
results = this.callAction('doUnnestThatFromThis', player.name, {} );
if( "undefined" !== typeof results ) return results;
return;
}
}());