xiyou_yueNanZhengshi
parent
5b33142c1e
commit
41348346d1
|
@ -179,6 +179,7 @@ function FloatNode:GetArtText(type, color, value)
|
||||||
local sp = ""
|
local sp = ""
|
||||||
local text = ""
|
local text = ""
|
||||||
value=floor(value)
|
value=floor(value)
|
||||||
|
--[[
|
||||||
if type == ArtFloatingType.CritDamage then
|
if type == ArtFloatingType.CritDamage then
|
||||||
sp = "r_zhandou_baoji_zh" -- 暴击
|
sp = "r_zhandou_baoji_zh" -- 暴击
|
||||||
text = text .. string.char((color*2)+110) -- 减号
|
text = text .. string.char((color*2)+110) -- 减号
|
||||||
|
@ -205,8 +206,34 @@ function FloatNode:GetArtText(type, color, value)
|
||||||
-- 数字
|
-- 数字
|
||||||
local str = tostring(value)
|
local str = tostring(value)
|
||||||
for i=1,#str do
|
for i=1,#str do
|
||||||
text = text..string.char((string.byte(str,i) - 48) + color*10 + 40)
|
text = text ..string.char((string.byte(str,i) - 48) + color*10 + 40)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
|
|
||||||
|
if type == ArtFloatingType.CritDamage then
|
||||||
|
sp = "r_zhandou_baoji_zh" -- 暴击
|
||||||
|
text = text .. "-" -- 减号
|
||||||
|
elseif type == ArtFloatingType.Damage then
|
||||||
|
text = text .. "-" -- 减号
|
||||||
|
elseif type == ArtFloatingType.Treat then
|
||||||
|
text = text.."+" -- 加号
|
||||||
|
elseif type == ArtFloatingType.FireDamage then
|
||||||
|
sp = "z_zhandou_zhuoshao_zh" -- 灼烧
|
||||||
|
-- text = text .. string.char(35) -- 灼烧文字
|
||||||
|
text = text .."-" -- 减号
|
||||||
|
elseif type == ArtFloatingType.PoisonDamage then
|
||||||
|
sp = "z_zhandou_zhongdu_zh" -- 灼烧
|
||||||
|
-- text = text .. string.char(34) -- 中毒文字
|
||||||
|
text = text .. "-" -- 减号
|
||||||
|
elseif type == ArtFloatingType.yujiaAdd then
|
||||||
|
sp = "z_zhandou_yujia_zh" --御甲
|
||||||
|
text = text .. "-" -- 减号
|
||||||
|
elseif type == ArtFloatingType.BleedDamage then
|
||||||
|
sp = "z_zhandou_liuxue_zh" -- 流血
|
||||||
|
|
||||||
|
text = text .. "-" -- 减号
|
||||||
|
end
|
||||||
|
text = text..value
|
||||||
return sp, text
|
return sp, text
|
||||||
end
|
end
|
||||||
function FloatNode:ArtFloating(type, color, value,frameColor)
|
function FloatNode:ArtFloating(type, color, value,frameColor)
|
||||||
|
|
Loading…
Reference in New Issue