id1017799

dev_chengFeng
jiaoyangna 2021-07-28 11:06:33 +08:00
parent 527295f30c
commit 35a048adc9
1 changed files with 13 additions and 1 deletions

View File

@ -866,7 +866,19 @@ function this.SetTreasureState(id,state)
data.state = 3
end
else
data.state = 2
local isAdd = false
for i = 1,#data.Reward do
if data.Reward[1].type == 1 then
data.state = 2
isAdd = true
break
end
end
if not isAdd and this.treasureData.treasureState == 1 then
data.state = 2
elseif not isAdd and this.treasureData.treasureState == 0 then
data.state = 4
end
end
else
data.state = 4