挂机奖励预览四舍五入显示

(cherry picked from commit 09ef1c8981)
dev_chengFeng
jiaoyangna 2021-10-15 12:12:38 +08:00
parent 2ed7770259
commit 234c17cfe4
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ function this.ItemAdapter(node, data)
if addValue - 1 <= 0 then
txt.text = baseValue
else
local valueShow = (addValue - 1) * data[2]
local valueShow = math.round((addValue - 1) * data[2])
txt.text = string.format("%s\n<color=#00FF00>(+%s)</color>",baseValue,valueShow)
end
end

View File

@ -605,7 +605,7 @@ function this.IntiReward()
if addValue - 1 <= 0 then
this.rewardList[i].text.text = "+"..rewardData[i][2]
else
local valueShow = (addValue - 1) * baseValue
local valueShow = math.round((addValue - 1) * baseValue)
this.rewardList[i].text.text = string.format("+%s\n<color=#00FF00>(+%s)</color>",baseValue,valueShow)
end
end