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
|
|
@ -21,14 +21,14 @@ function (Parent) {
|
|||
this.lastMoved = {
|
||||
player: player,
|
||||
timestamp: new Date()
|
||||
}
|
||||
};
|
||||
} else {
|
||||
this.lastMoved = null;
|
||||
}
|
||||
};
|
||||
|
||||
Item.prototype.isGrabbingAllowed = function(player) {
|
||||
return this.heldByPlayers.length == 0;
|
||||
Item.prototype.isGrabbingAllowed = function(player) { // jshint unused:false
|
||||
return this.heldByPlayers.length === 0;
|
||||
};
|
||||
|
||||
Item.prototype.beingGrabbed = function(player) {
|
||||
|
|
@ -40,7 +40,7 @@ function (Parent) {
|
|||
}
|
||||
};
|
||||
|
||||
Item.prototype.isReleasingAllowed = function(player) {
|
||||
Item.prototype.isReleasingAllowed = function(player) { // jshint unused:false
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
@ -81,8 +81,7 @@ function (Parent) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return Item;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue