// getInventory.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Character.prototype;
/**
* Get the character inventory,
* including things inside character and held by character.
* Does not return nested items.
* @memberOf adventurejs.Character
* @method adventurejs.Character#getInventory
* @returns {Object|Boolean}
* @todo should this return nested items?
* it probably should return nested items
*/
p.getInventory = function Character_getInventory()
{
return this.getContentsAt('in').concat( this.IOVgetConnections('hold') );
}
}());