From 8552aee09a280f14dd84c64a0e13e3b0cb67d965 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 3 Apr 2017 23:24:04 +0200 Subject: Maximum combo increased to 990 --- not/Hero.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'not/Hero.lua') diff --git a/not/Hero.lua b/not/Hero.lua index ec7f39f..68329ad 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -126,8 +126,8 @@ function Hero:update (dt) end -- Custom linear damping - if not isDown(controlset, "left") and - not isDown(controlset, "right") + if not isDown(controlset, "left") and + not isDown(controlset, "right") then local face = nil if x < -12 then @@ -388,7 +388,7 @@ function Hero:damage (direction) self:setLinearVelocity(x,0) self:applyLinearImpulse((42+10*self.combo)*horizontal, (68+10*self.combo)*vertical + 15) self:setAnimation("damage") - self.combo = math.min(27, self.combo + 1) + self.combo = math.min(99, self.combo + 1) self.punchcd = 0.08 + self.combo*0.006 self:playSound(2) end -- cgit v1.1