# $xp set @s $(lv) levels
$scoreboard players set @s level $(lv)
scoreboard players add @s fake_level 1
$scoreboard players set @s experience_max $(exp)
scoreboard players set @s experience 0

execute as @s[scores={player_id=1}] run function main:mechanics/upgrades/choice with storage player_data 1
# execute as @s[scores={player_id=2}] run function main:mechanics/upgrades/choice with storage player_data 2
# execute as @s[scores={player_id=3}] run function main:mechanics/upgrades/choice with storage player_data 3
# execute as @s[scores={player_id=4}] run function main:mechanics/upgrades/choice with storage player_data 4

execute at @s run playsound ui.toast.challenge_complete master @s ~ ~ ~ 1 1

execute at @s positioned ~ ~1 ~ run function main:particles/explosion_level