Skip to content

Commit 839f180

Browse files
committed
1 parent 30fd91c commit 839f180

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

serv/bin64/b2/lua/msg_custom/msg_25_5.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ function onMsg(me,merge_meta,merge)
2424
local col2 = 'prob'..a
2525
if true or math.random(100)<=conf[col2] then
2626
local col1 = 'item'..a
27-
table.insert(t_item_get, { itemID=conf[col1],num=1 })
27+
if tonumber(conf[col1]) >0 then
28+
table.insert(t_item_get, { itemID=conf[col1],num=1 })
29+
end
2830
end
2931
end
3032

@@ -55,6 +57,9 @@ function onMsg(me,merge_meta,merge)
5557
table.insert(t_item_get, 1,{ itemID=-1, num=1 })
5658
table.insert(t_item_get, 1,{ itemID=-1, num=1 })
5759
end
60+
else
61+
table.insert(t_item_get, 1,{ itemID=-1, num=1 })
62+
table.insert(t_item_get, 1,{ itemID=-1, num=1 })
5863
end
5964

6065
print('++++++++++++++++++++++++++++++++')

0 commit comments

Comments
 (0)