xiyou_yueNanZhengshi
PC-202302260912\Administrator 2024-11-15 15:25:44 +08:00
parent 5b33142c1e
commit 41348346d1
1 changed files with 28 additions and 1 deletions

View File

@ -179,6 +179,7 @@ function FloatNode:GetArtText(type, color, value)
local sp = ""
local text = ""
value=floor(value)
--[[
if type == ArtFloatingType.CritDamage then
sp = "r_zhandou_baoji_zh" -- 暴击
text = text .. string.char((color*2)+110) -- 减号
@ -205,8 +206,34 @@ function FloatNode:GetArtText(type, color, value)
-- 数字
local str = tostring(value)
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
]]
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
end
function FloatNode:ArtFloating(type, color, value,frameColor)