转盘,boss 修改
parent
93218d9e62
commit
8635a61e78
|
|
@ -181,8 +181,8 @@ function XiaoYaoLuckyBossPopup:SetSelectHero(monsterData)
|
||||||
costId = cost[#cost][1]
|
costId = cost[#cost][1]
|
||||||
costNum = cost[#cost][2]
|
costNum = cost[#cost][2]
|
||||||
else
|
else
|
||||||
costId = cost[monsterData.attackNum][1]
|
costId = cost[monsterData.attackNum+1][1]
|
||||||
costNum = cost[monsterData.attackNum][2]
|
costNum = cost[monsterData.attackNum+1][2]
|
||||||
end
|
end
|
||||||
LogGreen("costId:"..costId.." costNum:"..costNum)
|
LogGreen("costId:"..costId.." costNum:"..costNum)
|
||||||
Util.GetGameObject(this.e_fightBtn,"Text").gameObject:SetActive(false)
|
Util.GetGameObject(this.e_fightBtn,"Text").gameObject:SetActive(false)
|
||||||
|
|
|
||||||
|
|
@ -75,18 +75,22 @@ function this.InitLuckyTurnTables(msg)
|
||||||
for i = 1, #msg.randomItem do
|
for i = 1, #msg.randomItem do
|
||||||
table.insert(this.luckyTurnTableRewards,msg.randomItem[i])
|
table.insert(this.luckyTurnTableRewards,msg.randomItem[i])
|
||||||
end
|
end
|
||||||
this.luckyluckyTurnTableTimes = msg.randomNum
|
|
||||||
this.luckyluckyTurnTableRemainTime = msg.randomTime
|
|
||||||
elseif msg.random and #msg.random > 0 then
|
elseif msg.random and #msg.random > 0 then
|
||||||
for i = 1, #msg.random do
|
for i = 1, #msg.random do
|
||||||
table.insert(this.luckyTurnTableRewards,msg.random[i])
|
table.insert(this.luckyTurnTableRewards,msg.random[i])
|
||||||
end
|
end
|
||||||
this.luckyluckyTurnTableTimes = this.luckyluckyTurnTableTimes + 1
|
|
||||||
this.luckyluckyTurnTableRemainTime = msg.overTime
|
|
||||||
elseif msg.nextRandom and #msg.nextRandom > 0 then
|
elseif msg.nextRandom and #msg.nextRandom > 0 then
|
||||||
for i = 1, #msg.nextRandom do
|
for i = 1, #msg.nextRandom do
|
||||||
table.insert(this.luckyTurnTableRewards,msg.nextRandom[i])
|
table.insert(this.luckyTurnTableRewards,msg.nextRandom[i])
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
if msg.randomTime then
|
||||||
|
this.luckyluckyTurnTableTimes = msg.randomNum
|
||||||
|
this.luckyluckyTurnTableRemainTime = msg.randomTime
|
||||||
|
elseif msg.overTime then
|
||||||
|
this.luckyluckyTurnTableTimes = this.luckyluckyTurnTableTimes + 1
|
||||||
|
this.luckyluckyTurnTableRemainTime = msg.overTime
|
||||||
|
else
|
||||||
this.luckyluckyTurnTableTimes = this.luckyluckyTurnTableTimes - 1
|
this.luckyluckyTurnTableTimes = this.luckyluckyTurnTableTimes - 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue