execute at @s[tag=sniper_scoped_hit] run particle enchanted_hit ~ ~1.8 ~ 0.25 0.25 0.25 0.2 15
execute at @s[tag=sniper_scoped_hit] run playsound entity.experience_orb.pickup master @a ~ ~ ~ 3 1
$scoreboard players operation @s crit_damage = @a[tag=$(character)] crit_damage
$scoreboard players operation @s crit_damage += @a[tag=$(character)] crit_damage_$(type)
$scoreboard players operation @s damage_storage *= @a[tag=$(character)] crit_damage
scoreboard players operation @s damage_storage /= .100 number

tag @s add crit_chance_triggered

execute as @a[tag=sniper,tag=upgrade_6] unless score .upgrade_6 sniper matches 10.. run scoreboard players add .upgrade_6 sniper 1