#blue
#id2
execute if score .piggy_bank artifact matches 1.. run function main:mechanics/artifacts/id/blue/id2/hit

#id8
execute if score .scarred_mask artifact matches 1.. run function main:mechanics/artifacts/id/blue/id8/start

#id9
execute if score .feral_claw artifact matches 1.. run scoreboard players set .feral_claw_tick artifact 60

#purple
#id7
execute if score .blood_strengthening artifact matches 1.. run function main:mechanics/artifacts/id/purple/id7/hit

#id10
execute if score .fortified_offense artifact matches 1.. run function main:mechanics/artifacts/id/purple/id10/start

#id28
execute if score .broken_watch artifact matches 1.. unless score .broken_watch_tick artifact matches 1.. run function main:mechanics/artifacts/id/purple/id28/start

#handicrafts
#id11
execute if score .masocheese artifact matches 1.. if score .masocheese_tick artifact matches ..0 if entity @s run scoreboard players operation @s health += @s health_1
execute if score .masocheese artifact matches 1.. if score .masocheese_tick artifact matches ..0 if entity @s run scoreboard players operation @s health += @s health_1
execute if score .masocheese artifact matches 1.. if entity @s run scoreboard players set .masocheese_tick artifact 60

#orange
#id1
execute if score .broken_sword artifact matches 1.. run function main:mechanics/artifacts/id/orange/id1/start

#set reward
#id7
execute if score .blessed_aegis artifact matches 1.. at @s run scoreboard players set .blessed_aegis_tick artifact 3

$execute if score .blessed_aegis artifact matches 1.. if score .blessed_aegis_tick artifact matches 1.. run function main:mechanics/artifacts/id/set_reward/id7/hit {"character":"$(character)"}

#id14
execute if score .kickback artifact matches 1.. run function main:mechanics/artifacts/id/set_reward/id14/hit

#on death
execute if score @s health matches ..0 run function main:mechanics/artifacts/inputs/on_death

execute if entity @a[tag=game_started] run scoreboard players add .hit progression 1
execute if entity @a[tag=game_started] run scoreboard players add .hit_temp progression 1
execute if entity @a[tag=game_started] run scoreboard players set .no_hit_rooms progression 0