forked from HaodongMo/ArcCW
Fix override text issues
This commit is contained in:
parent
0b1db2ceb2
commit
9b75d9cfc8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user