From 0d33d8b9c887ec524a51464cf611bec5aed5a4d4 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 7 Aug 2021 00:04:49 +0200 Subject: [PATCH] chore: merge speed and gspeed --- sonic-radiance.love/scenes/battlesystem/actors/battler.lua | 1 - sonic-radiance.love/scenes/battlesystem/actors/hero.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sonic-radiance.love/scenes/battlesystem/actors/battler.lua b/sonic-radiance.love/scenes/battlesystem/actors/battler.lua index 6f8b446..a6d6ee9 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/battler.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/battler.lua @@ -11,7 +11,6 @@ function Battler:new(world, x, y, z, owner) Battler.super.new(self, world, x, y, z) self.isBattler = true - self.speed = 3 self.isActive = false self.debugActiveTimer = 0 diff --git a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua index 84f3a2f..e274a78 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua @@ -61,7 +61,7 @@ function Hero:updateAnimation(dt) end end - self:setCustomSpeed(self.gspeed * 160 * dt) + self:setCustomSpeed(self.speed * 160 * dt) end function Hero:getNewAnimation(animation)