mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed edge case for bonus
This commit is contained in:
@@ -24,6 +24,7 @@ PlayerBonus:set_metadata{
|
||||
--- Apply a bonus amount to a player
|
||||
local function apply_bonus(player, amount)
|
||||
if not amount then return end
|
||||
if not player.character then return end
|
||||
for bonus, min_max in pairs(config) do
|
||||
local increase = min_max[2]*amount
|
||||
player[bonus] = min_max[1]+increase
|
||||
|
||||
Reference in New Issue
Block a user