##calc
function main:settings/stats/calculation

##BRAWLER
# #rc - id1
# execute as @s[tag=brawler] anchored eyes if score @s rc_cooldown_s matches 1.. if score @s rc_id matches 1 if score @s rc_duration_t matches 1.. run function main:characters/brawler/rc/id1/id1

$execute if score @s rc_cooldown_s matches ..0 run function main:mechanics/artifacts/inputs/rc {"character":"$(character)","id":"$(id)"}

#id
$execute as @s[scores={stun=..0}] anchored eyes at @s run function main:characters/$(character)/rc/id$(rc)/id$(rc) with storage player_data 1

#right click reset and cooldown
scoreboard players set @s rc 0