fix: make that HP/PP value have no inbattle bonus
This commit is contained in:
parent
d9e521d643
commit
1dd8f14b7c
2 changed files with 6 additions and 1 deletions
|
@ -28,6 +28,7 @@ CONST.MULT_HP = 4.5
|
||||||
|
|
||||||
CONST.LIST = {CONST.HPMAX, CONST.PPMAX, CONST.ATTACK, CONST.POWER, CONST.DEFENSE, CONST.MIND, CONST.TECHNIC, CONST.SPEED}
|
CONST.LIST = {CONST.HPMAX, CONST.PPMAX, CONST.ATTACK, CONST.POWER, CONST.DEFENSE, CONST.MIND, CONST.TECHNIC, CONST.SPEED}
|
||||||
CONST.BATTLELIST = {CONST.ACCURACY, CONST.EVASION, CONST.LUCK, CONST.DAMAGE, CONST.ARMOR, CONST.CRITICAL, CONST.HPREGEN, CONST.PPREGEN}
|
CONST.BATTLELIST = {CONST.ACCURACY, CONST.EVASION, CONST.LUCK, CONST.DAMAGE, CONST.ARMOR, CONST.CRITICAL, CONST.HPREGEN, CONST.PPREGEN}
|
||||||
|
CONST.NOBONUS = {CONST.HPMAX, CONST.PPMAX, CONST.HPREGEN, CONST.PPREGEN}
|
||||||
|
|
||||||
CONST.SIMPLENAME = {}
|
CONST.SIMPLENAME = {}
|
||||||
CONST.SIMPLENAME[CONST.HPMAX] = "HP"
|
CONST.SIMPLENAME[CONST.HPMAX] = "HP"
|
||||||
|
|
|
@ -170,7 +170,11 @@ function FighterParent:getStat(statname)
|
||||||
end
|
end
|
||||||
|
|
||||||
function FighterParent:getStatBonusValue(statname)
|
function FighterParent:getStatBonusValue(statname)
|
||||||
return STATS.BONUS[self:getStatBonus(statname) + 5]
|
if (utils.table.contain(STATS.NOBONUS, statname)) then
|
||||||
|
return 1
|
||||||
|
else
|
||||||
|
return STATS.BONUS[self:getStatBonus(statname) + 5]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function FighterParent:getStatBonus(statname)
|
function FighterParent:getStatBonus(statname)
|
||||||
|
|
Loading…
Reference in a new issue