爆币
This commit is contained in:
@@ -11,7 +11,7 @@ class LotteryGiftLua
|
||||
-- 接收参数:send_uid, gift_gold, small_trigger_times, big_threshold, small_round, big_round, big_total_gold
|
||||
local send_uid = ARGV[1]
|
||||
local gift_gold = tonumber(ARGV[2])
|
||||
local small_trigger_times = tonumber(ARGV[3]) or 115 -- 小奖池触发次数
|
||||
local small_trigger_times = tonumber(ARGV[3]) or 200 -- 小奖池触发次数
|
||||
local small_round = tonumber(ARGV[4]) -- 小奖池当前轮次
|
||||
local lucky_rate = tonumber(ARGV[5]) -- 收益率
|
||||
local lottery_rate = tonumber(ARGV[6]) -- 爆币率
|
||||
@@ -45,12 +45,11 @@ local result = {
|
||||
small_total_gold = small_total_gold,
|
||||
is_small_prize = 0,
|
||||
small_prize_amount = 0,
|
||||
small_remain_amount = 0,
|
||||
small_round = small_round, -- 小奖池轮次
|
||||
}
|
||||
|
||||
-- 5. 小奖池开奖判断(小轮次+1)
|
||||
if small_total_times >= small_trigger_times then
|
||||
if small_total_times > small_trigger_times then
|
||||
result.is_small_prize = 1
|
||||
-- 小奖随机比例
|
||||
local small_ratio = math.random(2, lottery_rate)
|
||||
|
||||
Reference in New Issue
Block a user