From 8421b8ae979aa162ef32b2c5db1d7e951899ec98 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 5 Aug 2020 12:03:31 +0200 Subject: [PATCH] fix: some slight balancing work --- .../datas/gamedata/ennemies/classics/motobug/stats.lua | 8 ++++---- sonic-radiance.love/datas/stats.lua | 4 ++-- sonic-radiance.love/scenes/battlesystem/utils.lua | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sonic-radiance.love/datas/gamedata/ennemies/classics/motobug/stats.lua b/sonic-radiance.love/datas/gamedata/ennemies/classics/motobug/stats.lua index 60516f1..f547ce8 100644 --- a/sonic-radiance.love/datas/gamedata/ennemies/classics/motobug/stats.lua +++ b/sonic-radiance.love/datas/gamedata/ennemies/classics/motobug/stats.lua @@ -1,12 +1,12 @@ return { - hpmax = 50, -- + hpmax = 25, -- ppmax = 20, -- - attack = 10, -- + attack = 15, -- power = 20, -- - defense = 10, -- + defense = 05, -- technic = 10, -- mind = 10, -- luck = 02, -- - speed = 25, -- + speed = 15, -- } diff --git a/sonic-radiance.love/datas/stats.lua b/sonic-radiance.love/datas/stats.lua index 41b6220..1257b03 100644 --- a/sonic-radiance.love/datas/stats.lua +++ b/sonic-radiance.love/datas/stats.lua @@ -4,8 +4,8 @@ CONST.RANK_E = 10 CONST.RANK_D = 15 CONST.RANK_C = 20 CONST.RANK_B = 30 -CONST.RANK_A = 40 -CONST.RANK_S = 50 +CONST.RANK_A = 45 +CONST.RANK_S = 60 CONST.MULT_HP = 4.5 return CONST diff --git a/sonic-radiance.love/scenes/battlesystem/utils.lua b/sonic-radiance.love/scenes/battlesystem/utils.lua index 675dcab..dc492a9 100644 --- a/sonic-radiance.love/scenes/battlesystem/utils.lua +++ b/sonic-radiance.love/scenes/battlesystem/utils.lua @@ -8,8 +8,10 @@ maputils.CONST.STARTY = 90 function maputils.sortBattlers(a, b) local astats = a.fighter:getStats() local bstats = b.fighter:getStats() - local aspeed = astats.speed / 1.5 * a.number - local bspeed = bstats.speed / 1.5 * b.number + local aspeed = astats.speed / (3 ^ (a.number-1)) + local bspeed = bstats.speed / (3 ^ (b.number-1)) + + print(a.fighter.name, a.number, aspeed, b.fighter.name, b.number, bspeed) if (aspeed == bspeed) then