【青龙秘宝】========购买秘宝等级报错修改
parent
5051094bf6
commit
cc883eadff
|
@ -80,12 +80,12 @@ function this:Caculate(templv)
|
|||
for j=1,#reward.Reward do
|
||||
local id = reward.Reward[j].item[1]
|
||||
local num = reward.Reward[j].item[2]
|
||||
if reward.Reward[j].type == 1 then
|
||||
if reward.Reward[j].type == 1 and id~=0 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
direct[id] = direct[id] + num
|
||||
elseif reward.Reward[j].type == 2 and treasureState then
|
||||
elseif reward.Reward[j].type == 2 and treasureState and id~=0 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue