function rng:uuid_reset

execute as @a run function lobby:warp/inventory
scoreboard players set coins shop 0

scoreboard players set new_run state 0

scoreboard players add #runs_played dungeon 1
execute store result score #difficulty dungeon run difficulty
execute if score #difficulty dungeon matches 1 run scoreboard players add #eassy_runs_played dungeon 1
execute if score #difficulty dungeon matches 2 run scoreboard players add #normal_runs_played dungeon 1
execute if score #difficulty dungeon matches 3 run scoreboard players add #hard_runs_played dungeon 1

# --------- Msg players ----------
tellraw @a ["",{"text":"\n[!] ","color":"gold","bold":true},{"translate":"msg.starting_run","color":"gray","bold":false}]
