Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fixed one item lootchance
Browse files Browse the repository at this point in the history
  • Loading branch information
zf-development committed Nov 13, 2022
1 parent 7f5bf8c commit 14d9f53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function DropItem(finished, netId, playerId)
end
return pGive(playerId, itemTable, 10000)
else
local lootChance = math.random(1,100)
local item = Config.Loottable[math.random(1, #Config.Loottable)]
if lootChance >= item.chances then
return pGive(playerId, item.item, math.random(item.min, item.max))
Expand Down

0 comments on commit 14d9f53

Please sign in to comment.