挑战副本结算修改
parent
8023aa69f0
commit
cb636ad718
|
@ -12304,8 +12304,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 88, y: -124}
|
||||
m_SizeDelta: {x: 260, y: 100}
|
||||
m_AnchoredPosition: {x: 88, y: -177}
|
||||
m_SizeDelta: {x: 260, y: 134.5}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7935264025172253301
|
||||
CanvasRenderer:
|
||||
|
@ -12342,11 +12342,11 @@ MonoBehaviour:
|
|||
m_BestFit: 0
|
||||
m_MinSize: 3
|
||||
m_MaxSize: 60
|
||||
m_Alignment: 3
|
||||
m_Alignment: 0
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u56DE\u5408\u6570\uFF1A10"
|
||||
--- !u!1 &5763920370019103145
|
||||
|
|
|
@ -1118,11 +1118,28 @@ function this.GetBattleResult()
|
|||
if this.battleResult.type==1 then
|
||||
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1).Reward1
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..this.battleResult.lossBloodOrTimes
|
||||
local j=#reward1
|
||||
for i =1, #reward1 do
|
||||
if this.battleResult.lossBloodOrTimes>=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[3] = reward1
|
||||
else
|
||||
local reward1= ConfigManager.GetConfigData(ConfigName.ChallengeStage,1001).Reward1
|
||||
data[1] = "<color=#F9E7D3>回合数:</color> "..this.battleResult.lossBloodOrTimes
|
||||
local j=#reward1
|
||||
for i = #reward1, 1 do
|
||||
if this.battleResult.lossBloodOrTimes<=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[3] = reward1
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue