mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added ASSERT, fixed #103
This commit is contained in:
parent
55eff36f34
commit
dfa71bc8e5
17 changed files with 249 additions and 153 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue