added ASSERT, fixed #103

This commit is contained in:
Jeena 2015-03-15 16:51:38 +01:00
parent 55eff36f34
commit dfa71bc8e5
17 changed files with 249 additions and 153 deletions

View file

@ -22,13 +22,13 @@ function (Parent, Nc) {
if (isHolding) {
item = this.holdingItem;
} else {
item = this.doll.findCloseItem(options.x, options.y);
item = this.doll.findCloseItem(options.x);
}
if(item) {
this.handAction(options, isHolding, item);
}
}
};
Player.prototype.handAction = function(options, isHolding, item) {
@ -110,8 +110,7 @@ function (Parent, Nc) {
stats: this.stats
});
};
return Player;