execute if score damage stats_calc > #max_damage stats_calc run scoreboard players operation #max_damage stats_calc = damage stats_calc
execute if score health stats_calc > #max_health stats_calc run scoreboard players operation #max_health stats_calc = health stats_calc
execute if score speed stats_calc > #max_speed stats_calc run scoreboard players operation #max_speed stats_calc = speed stats_calc
execute if score knock_r stats_calc > #max_knock_r stats_calc run scoreboard players operation #max_knock_r stats_calc = knock_r stats_calc
execute if score armor stats_calc > #max_armor stats_calc run scoreboard players operation #max_armor stats_calc = armor stats_calc
execute if score armor_t stats_calc > #max_armor_t stats_calc run scoreboard players operation #max_armor_t stats_calc = armor_t stats_calc
execute if score attack_s stats_calc > #max_attack_s stats_calc run scoreboard players operation #max_attack_s stats_calc = attack_s stats_calc

execute if score curse stats_calc > #max_curse stats_calc run scoreboard players operation #max_curse stats_calc = curse stats_calc
execute if score luck stats_calc > #max_luck stats_calc run scoreboard players operation #max_luck stats_calc = luck stats_calc
execute if score mana_speed stats_calc > #max_mana_speed stats_calc run scoreboard players operation #max_mana_speed stats_calc = mana_speed stats_calc
execute if score mana_capacity stats_calc > #max_mana_capacity stats_calc run scoreboard players operation #max_mana_capacity stats_calc = mana_capacity stats_calc
execute if score mana_cost stats_calc > #max_mana_cost stats_calc run scoreboard players operation #max_mana_cost stats_calc = mana_cost stats_calc
execute if score souls_capacity stats_calc > #max_souls_capacity stats_calc run scoreboard players operation #max_souls_capacity stats_calc = souls_capacity stats_calc
execute if score global curse > #max_global_curse stats_calc run scoreboard players operation #max_global_curse stats_calc = global curse
execute if score global luck > #max_global_luck stats_calc run scoreboard players operation #max_global_luck stats_calc = global luck

execute if score coins shop > #max_coins stats_calc run scoreboard players operation #max_coins stats_calc = coins shop
