$execute if score .room_count room matches -2 run return run function main:game/room/choose/intro {"stage":$(stage)}

$execute if score .room_count room matches -1 run return run function main:game/room/choose/start {"stage":$(stage)}

$execute if score .room_count room matches 8.. run return run function main:game/room/choose/boss {"stage":$(stage)}

execute if entity @a[tag=choice_5_this] run return run function main:game/room/choose/shop
execute if entity @a[tag=choice_6_this] run return run function main:game/room/stage/fountain/start

$execute if entity @a[tag=choice_4_this] run return run function main:game/room/stage/workshop/start {"stage":$(stage),"workshop":1}

function main:game/room/random/choose

$execute if score .random room matches 1 run return run function main:game/room/choose/1 {"stage":$(stage)}
$execute if score .random room matches 2 run return run function main:game/room/choose/2 {"stage":$(stage)}
$execute if score .random room matches 3 run return run function main:game/room/choose/3 {"stage":$(stage)}
$execute if score .random room matches 4 run return run function main:game/room/choose/4 {"stage":$(stage)}
$execute if score .random room matches 5 run return run function main:game/room/choose/5 {"stage":$(stage)}
$execute if score .random room matches 6 run return run function main:game/room/choose/6 {"stage":$(stage)}
$execute if score .random room matches 7 run return run function main:game/room/choose/7 {"stage":$(stage)}
$execute if score .random room matches 8 run return run function main:game/room/choose/8 {"stage":$(stage)}
$execute if score .random room matches 9 run return run function main:game/room/choose/9 {"stage":$(stage)}
$execute if score .random room matches 10 run return run function main:game/room/choose/10 {"stage":$(stage)}

# $function main:game/room/random {"stage":$(stage)}