【青龙秘宝】======奖励添加空判断

dev_chengFeng
wangzhenxing 2022-07-04 18:43:22 +08:00
parent 417fdfa650
commit bb3f825aa9
1 changed files with 22 additions and 19 deletions

View File

@ -230,6 +230,7 @@ function this:showRewardQinglong()
for j=1,#reward.Reward do for j=1,#reward.Reward do
local id = reward.Reward[j].item[1] local id = reward.Reward[j].item[1]
local num = reward.Reward[j].item[2] local num = reward.Reward[j].item[2]
if id~=0 then
if reward.Reward[j].type == 2 then if reward.Reward[j].type == 2 then
if not indirect[id] then if not indirect[id] then
indirect[id] = 0 indirect[id] = 0
@ -255,6 +256,8 @@ function this:showRewardQinglong()
end end
end end
end end
end
end end
this:SetItem(direct,indirect) this:SetItem(direct,indirect)
end end