# execute store result score .artifact_random_quality arena run random value 1..100

# execute if score .artifact_random_quality arena matches 1..90 run scoreboard players set .artifact_rarity arena 1
# execute if score .artifact_random_quality arena matches 91..100 run scoreboard players set .artifact_rarity arena 2

# execute as @s at @s if score .artifact_rarity arena matches 1 run function main:mechanics/artifacts/id/give/random_purple
# execute as @s at @s if score .artifact_rarity arena matches 2 run function main:mechanics/artifacts/id/give/random_orange

scoreboard players add .relic arena 1
execute if score .stage arena matches 1 if score .relic arena matches 1 run function main:game/stage_end/reward/relics/slime_queen/1
execute if score .stage arena matches 1 if score .relic arena matches 2 run function main:game/stage_end/reward/relics/slime_queen/2
execute if score .stage arena matches 1 if score .relic arena matches 3 run function main:game/stage_end/reward/relics/slime_queen/3

execute if score .stage arena matches 2 if score .relic arena matches 1 run function main:game/stage_end/reward/relics/penguineer/1
execute if score .stage arena matches 2 if score .relic arena matches 2 run function main:game/stage_end/reward/relics/penguineer/2
execute if score .stage arena matches 2 if score .relic arena matches 3 run function main:game/stage_end/reward/relics/penguineer/3

execute if score .stage arena matches 3 if score .relic arena matches 1 run function main:game/stage_end/reward/relics/last_gladiator/1
execute if score .stage arena matches 3 if score .relic arena matches 2 run function main:game/stage_end/reward/relics/last_gladiator/2
execute if score .stage arena matches 3 if score .relic arena matches 3 run function main:game/stage_end/reward/relics/last_gladiator/3

execute if score .stage arena matches 4 if score .relic arena matches 1 run function main:game/stage_end/reward/relics/forest_witch/1
execute if score .stage arena matches 4 if score .relic arena matches 2 run function main:game/stage_end/reward/relics/forest_witch/2
execute if score .stage arena matches 4 if score .relic arena matches 3 run function main:game/stage_end/reward/relics/forest_witch/3