function main:game/wave/combo/check
tp @e[type=item,tag=gold] @p
kill @e[type=#main:enemies,tag=enemy]
execute as @e[type=bee] on passengers run kill @s
kill @e[type=bee]
kill @e[type=text_display]

scoreboard players set .room_change room 0
execute unless score .room_number room matches ..-1 run function main:game/wave/room_cleared
execute unless entity @a[tag=e_entry,tag=e_sky] run function main:game/wave/tick/progress_bar/room_end

tag @s remove wave
tag @s add rest
#spawn reward
execute as @s[tag=choice_1_this] run schedule function main:game/wave/artifacts/start 1t
execute as @s[tag=choice_2_this] run schedule function main:game/wave/coins/start 1t
execute as @s[tag=choice_3_this] run schedule function main:game/wave/essence/start 1t
execute as @s[tag=choice_7_this] run schedule function main:game/wave/healing/start 1t
execute as @s[tag=choice_8_this] run schedule function main:game/wave/glove_roll/start 1t
execute if score .difficulty_level progression matches 0..4 as @a run function main:game/wave/shield_restore

#scores
scoreboard players set .kills arena 0
scoreboard players set .play music 0