$scoreboard players set @s base_cooldown_$(type) $(cooldown)
$scoreboard players set @s cooldown_multiplier_$(type) 100

##character

##artifacts
#purple
#id1
execute if score .ultimate_cake artifact matches 1.. run scoreboard players remove @s cooldown_multiplier_q 30
execute if score .ultimate_cake artifact matches 1.. run scoreboard players add @s cooldown_multiplier_rc 20

#id17
execute if score .extra_munition artifact matches 1.. run scoreboard players remove @s base_cooldown_q 1

#id18
execute if score .steam_release artifact matches 1.. run scoreboard players remove @s cooldown_multiplier_q 20

$scoreboard players operation @s base_cooldown_$(type) *= @s cooldown_multiplier_$(type)
$scoreboard players operation @s base_cooldown_$(type) /= .100 number
$execute as @s[tag=sniper,scores={base_cooldown_$(type)=..1}] run scoreboard players set @s base_cooldown_$(type) 1

$scoreboard players operation @s $(type)_cooldown_s = @s base_cooldown_$(type)
$scoreboard players set @s $(type)_cooldown_t 0

#id28 - purple
$execute if entity @s[tag=broken_watch_triggered] run function main:mechanics/artifacts/id/purple/id28/activation {"type":"$(type)"}