block_league-cd2025/exp_manager.lua
2020-10-27 18:13:15 +01:00

14 lines
463 B
Lua

-- EXP is disabled right now as we haven't decided yet what purpose should have,
-- aside as a barrier for future ranked games
function block_league.add_xp(p_name, xp)
block_league.players[p_name].XP = block_league.players[p_name].XP + xp
end
function block_league.subtract_exp(p_name, xp)
block_league.players[p_name].XP = block_league.players[p_name].XP - xp
if block_league.players[p_name].XP < 0 then
block_league.players[p_name].XP = 0
end
end