挑战副本优化
parent
ce3c7eab80
commit
2429aa88fc
|
@ -1115,32 +1115,33 @@ end
|
|||
--获取战斗结束后信息(拼接)
|
||||
function this.GetBattleResult()
|
||||
local data = {}
|
||||
local boutNum=this.battleResult.lossBloodOrTimes>20 and 20 or this.battleResult.lossBloodOrTimes
|
||||
if this.battleResult.type==1 then
|
||||
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1).Reward1
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..this.battleResult.lossBloodOrTimes
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..boutNum
|
||||
local j=#reward1
|
||||
for i =1, #reward1 do
|
||||
if this.battleResult.lossBloodOrTimes>=reward1[j][1] then
|
||||
if boutNum>=reward1[j][1] then
|
||||
data[1]= string.format("%s\n\n当前评价奖励加成%s",data[1],(reward1[j][2]/100).."%")
|
||||
break
|
||||
end
|
||||
j=j-1
|
||||
end
|
||||
|
||||
data[2]=this.battleResult.lossBloodOrTimes/20
|
||||
data[2]=boutNum/20
|
||||
data[3] = reward1
|
||||
else
|
||||
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1001).Reward1
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..this.battleResult.lossBloodOrTimes
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..boutNum
|
||||
local j=#reward1
|
||||
for i = #reward1, 1 do
|
||||
if this.battleResult.lossBloodOrTimes<=reward1[j][1] then
|
||||
if boutNum<=reward1[j][1] then
|
||||
data[1]= string.format("%s\n当前评价奖励加成%s",data[1],reward1[j][2])
|
||||
break
|
||||
end
|
||||
j=j-1
|
||||
end
|
||||
data[2]=(20-this.battleResult.lossBloodOrTimes)/20
|
||||
data[2]=(20-boutNum)/20
|
||||
data[3] = reward1
|
||||
end
|
||||
data[4] = this.battleResult.type
|
||||
|
|
Loading…
Reference in New Issue