kill @e[type=text_display,tag=price]

execute if score @p gold >= .shop_price_1 room run data modify storage shop items.1.tag set value white
execute if score @p gold < .shop_price_1 room run data modify storage shop items.1.tag set value red

execute if score @p gold >= .shop_price_2 room run data modify storage shop items.2.tag set value white
execute if score @p gold < .shop_price_2 room run data modify storage shop items.2.tag set value red

execute if score @p gold >= .shop_price_3 room run data modify storage shop items.3.tag set value white
execute if score @p gold < .shop_price_3 room run data modify storage shop items.3.tag set value red

execute if entity @e[type=item,tag=artifact,x=76,y=-32,z=62,dx=0] run function main:game/wave/shop/items/price with storage shop items.1
execute if entity @e[type=item,tag=artifact,x=79,y=-32,z=62,dx=0] run function main:game/wave/shop/items/price with storage shop items.2
execute if entity @e[type=item,tag=artifact,x=82,y=-32,z=62,dx=0] run function main:game/wave/shop/items/price with storage shop items.3