From 04fab227f8cc23946d679d3808a6f0c3923a564d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 15 Aug 2019 09:16:24 +0200 Subject: [PATCH] improvement(sonic): add move value to Sonic --- sonic-radiance.love/datas/gamedata/characters/sonic/init.lua | 1 + sonic-radiance.love/scenes/battlesystem/actors/hero.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sonic-radiance.love/datas/gamedata/characters/sonic/init.lua b/sonic-radiance.love/datas/gamedata/characters/sonic/init.lua index 9bbc761..232d1de 100644 --- a/sonic-radiance.love/datas/gamedata/characters/sonic/init.lua +++ b/sonic-radiance.love/datas/gamedata/characters/sonic/init.lua @@ -5,6 +5,7 @@ return { speed = 5, jump = 3, turns = 3, + move = 3, startlevel = 50, diff --git a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua index 9c0cab3..f685162 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua @@ -38,7 +38,7 @@ end function Hero:setActive() core.debug:print("cbs/hero", "hero " .. self.charid .. " is now active") - local gridsize = game.characters.list[self.charid].base_stats.move + local gridsize = game.characters.list[self.charid].move if (gridsize == nil) then gridsize = 3 core.debug:warning("cbs/character", "move value is nil")