【战斗】============ 显示层伤害显示屏蔽小数 118,121效果去除小数
parent
ec07753463
commit
8dbafbee93
|
@ -2272,7 +2272,7 @@ local effectList = {
|
||||||
local f1 = args[2]
|
local f1 = args[2]
|
||||||
|
|
||||||
BattleLogic.WaitForTrigger(interval, function ()
|
BattleLogic.WaitForTrigger(interval, function ()
|
||||||
local damage = BattleUtil.ErrorCorrection(f1 * caster:GetRoleData(BattlePropList[pro]))
|
local damage = floor(BattleUtil.ErrorCorrection(f1 * caster:GetRoleData(BattlePropList[pro])))
|
||||||
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
@ -2335,7 +2335,7 @@ local effectList = {
|
||||||
local f1 = args[2]
|
local f1 = args[2]
|
||||||
|
|
||||||
BattleLogic.WaitForTrigger(interval, function ()
|
BattleLogic.WaitForTrigger(interval, function ()
|
||||||
local damage = BattleUtil.ErrorCorrection(f1 * target:GetRoleData(BattlePropList[pro]))
|
local damage = floor(BattleUtil.ErrorCorrection(f1 * target:GetRoleData(BattlePropList[pro])))
|
||||||
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -2,7 +2,7 @@ FloatNode = {}
|
||||||
|
|
||||||
local floatingEffect = "FloatingText"
|
local floatingEffect = "FloatingText"
|
||||||
local buffFloatingEffect = "BuffFloatingText"
|
local buffFloatingEffect = "BuffFloatingText"
|
||||||
|
local floor = math.floor
|
||||||
-- 普通文字
|
-- 普通文字
|
||||||
TextFloatingColor = {
|
TextFloatingColor = {
|
||||||
Blue = 1,
|
Blue = 1,
|
||||||
|
@ -152,6 +152,7 @@ end
|
||||||
|
|
||||||
function FloatNode:GetArtText(type, color, value)
|
function FloatNode:GetArtText(type, color, value)
|
||||||
local text = ""
|
local text = ""
|
||||||
|
value=floor(value)
|
||||||
if type == ArtFloatingType.CritDamage then
|
if type == ArtFloatingType.CritDamage then
|
||||||
text = text .. string.char(33) -- 暴击文字
|
text = text .. string.char(33) -- 暴击文字
|
||||||
text = text .. string.char((color*2)+110) -- 减号
|
text = text .. string.char((color*2)+110) -- 减号
|
||||||
|
|
Loading…
Reference in New Issue