伤害副本结尾奖励显示加成修改提交

TCX_dev_realOne_master
wangzhenxing 2023-12-21 20:54:41 +08:00
parent 335d7cb588
commit 8fa507c870
1 changed files with 5 additions and 2 deletions

View File

@ -1116,6 +1116,7 @@ end
function this.GetBattleResult()
local data = {}
local boutNum=this.battleResult.lossBloodOrTimes>20 and 20 or this.battleResult.lossBloodOrTimes
LogError("this.battleResult.type==="..this.battleResult.type)
if this.battleResult.type==1 then
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1).Reward1
data[1] = "<color=#F9E7D3>回合数:</color> "..boutNum
@ -1134,9 +1135,11 @@ function this.GetBattleResult()
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1001).Reward1
data[1] = "<color=#F9E7D3>回合数:</color> "..boutNum
local j=#reward1
for i = #reward1, 1 do
--LogError("j================================"..j)
for i = #reward1, 1,-1 do
LogError("boutNum==="..boutNum.." reward1[j][1]===="..reward1[j][1])
if boutNum<=reward1[j][1] then
data[1]= string.format("%s\n当前评价奖励加成%s",data[1],reward1[j][2])
data[1]= string.format("%s\n当前评价奖励加成%s",data[1],(reward1[j][2]/100).."%")
break
end
j=j-1