mirror of
https://github.com/TangentFoxy/Piefiller.git
synced 2024-11-19 17:14:23 +00:00
slight improvement
This commit is contained in:
parent
9215842cc8
commit
b433ddc889
@ -221,7 +221,11 @@ end
|
|||||||
|
|
||||||
function piefiller:getText(v)
|
function piefiller:getText(v)
|
||||||
if self.small then
|
if self.small then
|
||||||
return tostring(math.ceil(v.prc)).."% "..tostring(v.src)..":"..tostring(v.def)
|
if v.src:sub(1,1) == "@" then
|
||||||
|
return tostring(math.ceil(v.prc)).."% "..tostring(v.src:sub(2))..":"..tostring(v.def)
|
||||||
|
else
|
||||||
|
return tostring(math.ceil(v.prc)).."% "..tostring(v.src)..":"..tostring(v.def)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
if v.src:sub(1,1) == "@" then
|
if v.src:sub(1,1) == "@" then
|
||||||
return tostring(math.ceil(v.prc)).."% "..tostring(v.name)..tostring(v.src)..":"..tostring(v.def)
|
return tostring(math.ceil(v.prc)).."% "..tostring(v.name)..tostring(v.src)..":"..tostring(v.def)
|
||||||
|
Loading…
Reference in New Issue
Block a user