improvement(sonic): add move value to Sonic

This commit is contained in:
Kazhnuz 2019-08-15 09:16:24 +02:00
parent 89568ad3b5
commit 04fab227f8
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ return {
speed = 5,
jump = 3,
turns = 3,
move = 3,
startlevel = 50,

View file

@ -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")