2020-08-02 21:26:49 +02:00
|
|
|
local CONST = {}
|
|
|
|
|
2021-07-03 08:56:57 +02:00
|
|
|
CONST.HPMAX = "hpmax"
|
|
|
|
CONST.PPMAX = "ppmax"
|
|
|
|
CONST.ATTACK = "attack"
|
|
|
|
CONST.POWER = "power"
|
|
|
|
CONST.DEFENSE = "defense"
|
|
|
|
CONST.MIND = "mind"
|
|
|
|
CONST.TECHNIC = "technic"
|
|
|
|
CONST.SPEED = "speed"
|
|
|
|
|
2021-07-03 12:56:32 +02:00
|
|
|
CONST.DAMAGE = "damage"
|
|
|
|
CONST.ACCURACY = "accuracy"
|
|
|
|
CONST.EVASION = "evasion"
|
|
|
|
CONST.LUCK = "luck"
|
|
|
|
CONST.ARMOR = "armor"
|
|
|
|
CONST.CRITICAL = "critical"
|
|
|
|
CONST.HPREGEN = "hpregen"
|
|
|
|
CONST.PPREGEN = "ppregen"
|
|
|
|
|
2020-08-02 21:26:49 +02:00
|
|
|
CONST.RANK_E = 10
|
2021-04-22 18:57:03 +02:00
|
|
|
CONST.RANK_D = 25
|
|
|
|
CONST.RANK_C = 40
|
|
|
|
CONST.RANK_B = 60
|
|
|
|
CONST.RANK_A = 80
|
|
|
|
CONST.RANK_S = 100
|
2020-08-02 21:26:49 +02:00
|
|
|
CONST.MULT_HP = 4.5
|
|
|
|
|
2021-07-03 08:56:57 +02:00
|
|
|
CONST.LIST = {CONST.HPMAX, CONST.PPMAX, CONST.ATTACK, CONST.POWER, CONST.DEFENSE, CONST.MIND, CONST.TECHNIC, CONST.SPEED}
|
2021-07-03 12:56:32 +02:00
|
|
|
CONST.BATTLELIST = {CONST.ACCURACY, CONST.EVASION, CONST.LUCK, CONST.DAMAGE, CONST.ARMOR, CONST.CRITICAL, CONST.HPREGEN, CONST.PPREGEN}
|
2021-07-03 13:20:44 +02:00
|
|
|
CONST.NOBONUS = {CONST.HPMAX, CONST.PPMAX, CONST.HPREGEN, CONST.PPREGEN}
|
2021-04-22 23:41:20 +02:00
|
|
|
|
|
|
|
CONST.SIMPLENAME = {}
|
2021-07-03 08:56:57 +02:00
|
|
|
CONST.SIMPLENAME[CONST.HPMAX] = "HP"
|
|
|
|
CONST.SIMPLENAME[CONST.PPMAX] = "PP"
|
|
|
|
CONST.SIMPLENAME[CONST.ATTACK] = "ATK"
|
|
|
|
CONST.SIMPLENAME[CONST.POWER] = "POW"
|
|
|
|
CONST.SIMPLENAME[CONST.DEFENSE] = "DEF"
|
|
|
|
CONST.SIMPLENAME[CONST.MIND] = "MND"
|
|
|
|
CONST.SIMPLENAME[CONST.TECHNIC] = "TEK"
|
|
|
|
CONST.SIMPLENAME[CONST.SPEED] = "SPD"
|
2021-04-22 23:41:20 +02:00
|
|
|
|
2021-05-15 22:50:06 +02:00
|
|
|
CONST.EXP_MULTIPLICATOR = 4
|
|
|
|
CONST.EXP_RATIO = 5
|
|
|
|
|
|
|
|
CONST.BASE_STAT = 5
|
|
|
|
CONST.BASE_HP = 15
|
|
|
|
CONST.BASE_MP = 8
|
|
|
|
|
|
|
|
CONST.MULT_STAT = 2
|
|
|
|
CONST.MULT_HP = 7.5
|
|
|
|
CONST.SALT_HP = 35
|
|
|
|
CONST.MULT_MP = 1.5
|
|
|
|
|
2021-07-03 12:56:32 +02:00
|
|
|
local function createBattleStat(name, valueHero, valueEnnemy)
|
|
|
|
CONST.BATTLESTAT.HERO[name] = valueHero
|
|
|
|
CONST.BATTLESTAT.ENNEMI[name] = valueEnnemy or valueHero
|
|
|
|
end
|
|
|
|
|
|
|
|
CONST.BATTLESTAT = {}
|
|
|
|
CONST.BATTLESTAT.HERO = {}
|
|
|
|
CONST.BATTLESTAT.ENNEMI = {}
|
|
|
|
createBattleStat("accuracy", 100)
|
|
|
|
createBattleStat("evasion", 0)
|
|
|
|
createBattleStat("luck", 66, 40)
|
|
|
|
createBattleStat("damage", 0)
|
|
|
|
createBattleStat("armor", 0)
|
|
|
|
createBattleStat("critical", 0)
|
2021-07-03 13:18:47 +02:00
|
|
|
createBattleStat("hpregen", 0)
|
|
|
|
createBattleStat("ppregen", 0)
|
2021-07-03 12:56:32 +02:00
|
|
|
|
|
|
|
CONST.ARMOR_AND_DAMAGE_RATIO = .5
|
|
|
|
|
2021-07-03 13:18:24 +02:00
|
|
|
CONST.BONUS = {0.75, 0.8125, 0.875, 0.9375, 1, 1.125, 1.25, 1.375, 1.5}
|
|
|
|
|
2020-08-02 21:26:49 +02:00
|
|
|
return CONST
|