mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added gangsta level and tried to fix on new level
This commit is contained in:
parent
3283f97f07
commit
0592e2524d
11 changed files with 1434 additions and 15 deletions
|
|
@ -74,8 +74,9 @@ function (Parent, Item, Box2D, Nc, Assert) {
|
|||
// * 80: tested imperically by throwing knife fast
|
||||
var damage = (velocityDamage + 0.5) * (weightDamage * 300 + dangerDamage * 80) / 2;
|
||||
|
||||
var lastMovedPlayer = item.lastMoved.player;
|
||||
var callback = function() {
|
||||
self.player.addDamage(damage, item.lastMoved.player, item);
|
||||
self.player.addDamage(damage, lastMovedPlayer, item);
|
||||
};
|
||||
|
||||
Nc.trigger(Nc.ns.channel.engine.worldQueue.add, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue