Fix override text issues

This commit is contained in:
TheOnly8Z 2021-05-18 20:46:39 +08:00
parent 0b1db2ceb2
commit 9b75d9cfc8

View File

@ -90,8 +90,8 @@ local function stattext(i, k, dmgboth)
local sign, state = k > 0 and "+" or "-", k > 0 and k or -k
txt = simple and "+ " or sign .. tostr(state) .. " "
return txt .. str, k > 1 and tpro or tcon
elseif stat[2] == "override" and k == true then
return st and cons or pros, str
elseif stat[2] == "override" and ((st == false and k == true) or (st == true and k == false)) then
return str, k and tcon or tpro
elseif stat[2] == "func" then
local a, b = stat[3](k)
if a and b then return a, b end