mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 08:24:52 +09:00
Fixed some bugs
This commit is contained in:
6 files changed
+23
-31
No files matched your search
@@ -23,8 +23,8 @@ local function apply_bonus(player, amount)
|
||||
end
|
||||
|
||||
--- When store is updated apply new bonus to the player
|
||||
PlayerBonus.on_update(function(player_name, player_bonus)
|
||||
apply_bonus(game.player[player_name], player_bonus or 0)
|
||||
PlayerBonus:on_update(function(player_name, player_bonus)
|
||||
apply_bonus(game.players[player_name], player_bonus or 0)
|
||||
end)
|
||||
|
||||
--- Changes the amount of bonus you receive
|
||||
|
||||
Reference in new issue
Block a user