【新将来袭优化】优化BOSS血量百分比显示

dev_chengFeng
ZhangBiao 2021-01-21 15:31:22 +08:00
parent f6de94dcd5
commit c76035f0e2
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ function this.RefreshMyDamageShow(data)
local curBossHp = data:GetData(RoleDataName.Hp)
local maxBossHp = data:GetData(RoleDataName.MaxHp)
local curPercent = (maxBossHp-curBossHp)*100/maxBossHp
curPercent = curPercent > 0.01 and curPercent or 0.01
this.dmg2Text.text = string.format("%.2f",curPercent).."%"
local num = 0