【新将来袭优化】优化BOSS血量百分比显示
parent
f6de94dcd5
commit
c76035f0e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue