improvement(sonic): add move value to Sonic
This commit is contained in:
parent
89568ad3b5
commit
04fab227f8
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ return {
|
|||
speed = 5,
|
||||
jump = 3,
|
||||
turns = 3,
|
||||
move = 3,
|
||||
|
||||
startlevel = 50,
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue