chore: put const files in a single folder

This commit is contained in:
Kazhnuz 2021-05-16 08:38:09 +02:00
parent 8c9f814370
commit e9c9cbb8e3
11 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
local CONST = require "datas.stats"
local CONST = require "datas.consts.stats"
return {
hpmax = CONST.RANK_A, --

View file

@ -1,4 +1,4 @@
local CONST = require "datas.stats"
local CONST = require "datas.consts.stats"
return {
hpmax = CONST.RANK_B, --

View file

@ -1,4 +1,4 @@
local CONST = require "datas.stats"
local CONST = require "datas.consts.stats"
return {
hpmax = CONST.RANK_C, --

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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