From e9c9cbb8e3ad1b67d7893b2cb5635202da7be9d3 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 16 May 2021 08:38:09 +0200 Subject: [PATCH] chore: put const files in a single folder --- sonic-radiance.love/datas/{cbs.lua => consts/battle.lua} | 0 sonic-radiance.love/datas/{ => consts}/stats.lua | 0 sonic-radiance.love/datas/gamedata/characters/amy/stats.lua | 2 +- sonic-radiance.love/datas/gamedata/characters/sonic/stats.lua | 2 +- sonic-radiance.love/datas/gamedata/characters/tails/stats.lua | 2 +- sonic-radiance.love/game/abstractmobs/character/levels.lua | 2 +- sonic-radiance.love/game/utils/battle/init.lua | 2 +- sonic-radiance.love/game/utils/characters.lua | 2 +- .../scenes/battlesystem/controllers/fighters/parent.lua | 2 +- .../scenes/overworld/screens/mainmenu/character/statpage.lua | 2 +- sonic-radiance.love/scenes/overworld/screens/mainmenu/equip.lua | 2 +- 11 files changed, 9 insertions(+), 9 deletions(-) rename sonic-radiance.love/datas/{cbs.lua => consts/battle.lua} (100%) rename sonic-radiance.love/datas/{ => consts}/stats.lua (100%) diff --git a/sonic-radiance.love/datas/cbs.lua b/sonic-radiance.love/datas/consts/battle.lua similarity index 100% rename from sonic-radiance.love/datas/cbs.lua rename to sonic-radiance.love/datas/consts/battle.lua diff --git a/sonic-radiance.love/datas/stats.lua b/sonic-radiance.love/datas/consts/stats.lua similarity index 100% rename from sonic-radiance.love/datas/stats.lua rename to sonic-radiance.love/datas/consts/stats.lua diff --git a/sonic-radiance.love/datas/gamedata/characters/amy/stats.lua b/sonic-radiance.love/datas/gamedata/characters/amy/stats.lua index 5879ee4..f1d7862 100644 --- a/sonic-radiance.love/datas/gamedata/characters/amy/stats.lua +++ b/sonic-radiance.love/datas/gamedata/characters/amy/stats.lua @@ -1,4 +1,4 @@ -local CONST = require "datas.stats" +local CONST = require "datas.consts.stats" return { hpmax = CONST.RANK_A, -- diff --git a/sonic-radiance.love/datas/gamedata/characters/sonic/stats.lua b/sonic-radiance.love/datas/gamedata/characters/sonic/stats.lua index b685137..96d3630 100644 --- a/sonic-radiance.love/datas/gamedata/characters/sonic/stats.lua +++ b/sonic-radiance.love/datas/gamedata/characters/sonic/stats.lua @@ -1,4 +1,4 @@ -local CONST = require "datas.stats" +local CONST = require "datas.consts.stats" return { hpmax = CONST.RANK_B, -- diff --git a/sonic-radiance.love/datas/gamedata/characters/tails/stats.lua b/sonic-radiance.love/datas/gamedata/characters/tails/stats.lua index 2e54926..3c38b84 100644 --- a/sonic-radiance.love/datas/gamedata/characters/tails/stats.lua +++ b/sonic-radiance.love/datas/gamedata/characters/tails/stats.lua @@ -1,4 +1,4 @@ -local CONST = require "datas.stats" +local CONST = require "datas.consts.stats" return { hpmax = CONST.RANK_C, -- diff --git a/sonic-radiance.love/game/abstractmobs/character/levels.lua b/sonic-radiance.love/game/abstractmobs/character/levels.lua index e3e127a..954c4c7 100644 --- a/sonic-radiance.love/game/abstractmobs/character/levels.lua +++ b/sonic-radiance.love/game/abstractmobs/character/levels.lua @@ -1,7 +1,7 @@ local CharacterLevel = Object:extend() local charutils = require "game.utils.characters" -local STATS = require "datas.stats" +local STATS = require "datas.consts.stats" function CharacterLevel:initLevel() self.level = self.data.startlevel diff --git a/sonic-radiance.love/game/utils/battle/init.lua b/sonic-radiance.love/game/utils/battle/init.lua index 5f05529..bbf9582 100644 --- a/sonic-radiance.love/game/utils/battle/init.lua +++ b/sonic-radiance.love/game/utils/battle/init.lua @@ -1,5 +1,5 @@ local BattleUtils = {} -local CONSTS = require "datas.cbs" +local CONSTS = require "datas.consts.battle" function BattleUtils.computeLaunchingDamages(base, stats, isSpecial) local damages = base / CONSTS.DAMAGE.DIVISOR diff --git a/sonic-radiance.love/game/utils/characters.lua b/sonic-radiance.love/game/utils/characters.lua index e9e4390..8c11059 100644 --- a/sonic-radiance.love/game/utils/characters.lua +++ b/sonic-radiance.love/game/utils/characters.lua @@ -1,6 +1,6 @@ local CharUtils = {} -local CONST = require "datas.stats" +local CONST = require "datas.consts.stats" function CharUtils.getExpValue(level) return math.floor( ( CONST.EXP_MULTIPLICATOR * ( level ^ 3 ) ) / CONST.EXP_RATIO ) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua index 5786fd4..bafa8d9 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua @@ -1,6 +1,6 @@ local FighterParent = Object:extend() -local CONST = require "datas.cbs" +local CONST = require "datas.consts.battle" local battleutils = require "game.utils.battle" function FighterParent:new(owner, isHero, id) diff --git a/sonic-radiance.love/scenes/overworld/screens/mainmenu/character/statpage.lua b/sonic-radiance.love/scenes/overworld/screens/mainmenu/character/statpage.lua index e8aa0c2..fa120ac 100644 --- a/sonic-radiance.love/scenes/overworld/screens/mainmenu/character/statpage.lua +++ b/sonic-radiance.love/scenes/overworld/screens/mainmenu/character/statpage.lua @@ -8,7 +8,7 @@ local const = require "scenes.overworld.screens.mainmenu.const" local EquipMenu = menu.ListMenu:extend() local EquipWidget = menu.DualTextWidget:extend() -local STATS = require "datas.stats" +local STATS = require "datas.consts.stats" function StatPage:new(view, character) self.statBox = gui.newTextBox("assets/gui/dialogbox.png", const.CHARPAGESIZE, 40 + 32) diff --git a/sonic-radiance.love/scenes/overworld/screens/mainmenu/equip.lua b/sonic-radiance.love/scenes/overworld/screens/mainmenu/equip.lua index 7615561..28f134b 100644 --- a/sonic-radiance.love/scenes/overworld/screens/mainmenu/equip.lua +++ b/sonic-radiance.love/scenes/overworld/screens/mainmenu/equip.lua @@ -10,7 +10,7 @@ local baseCharacterWidget = require "scenes.overworld.screens.mainmenu.common.ch local CharacterMenu = baseCharacterMenu:extend() local CharacterWidget = baseCharacterWidget:extend() -local STATS = require "datas.stats" +local STATS = require "datas.consts.stats" local DESC_SIZE = 32 * 6