mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
getRandomReward added for reward item support
This commit is contained in:
@@ -8,7 +8,7 @@ function jobCheck(job)
|
||||
return canDo
|
||||
end
|
||||
|
||||
local time = 100
|
||||
local time = 1000
|
||||
function loadModel(model)
|
||||
if not IsModelValid(model) then print("^6Bridge^7: ^1ERROR^7: ^2Model^7 - '^6"..model.."^7' ^2does not exist in server") return
|
||||
else
|
||||
@@ -588,7 +588,7 @@ function ConsumeSuccess(itemName, type)
|
||||
AlienEffect()
|
||||
end
|
||||
end
|
||||
if Config.RewardItem == itemName then addItem(Config.RewardPool[math.random(1, #Config.RewardPool)], 1) end
|
||||
getRandomReward(itemName) -- check if a reward item should be given
|
||||
end
|
||||
|
||||
function addItem(item, amount, info)
|
||||
|
||||
Reference in New Issue
Block a user