Merge branch 'explosivegaming:main' into aperx

This commit is contained in:
2025-09-17 19:06:27 +09:00
committed by GitHub
23 changed files with 201 additions and 13 deletions

View File

@@ -401,6 +401,9 @@ end
--- @param player LuaPlayer
function Elements.container.clear_player_bonus(player)
Elements.container.data[player] = {}
if not player.character then
return
end
for _, bonus_data in pairs(config.player_bonus) do
if not bonus_data.is_special then
player[bonus_data.name] = 0