$scoreboard players set .shop_price_$(id) room $(base)
scoreboard players set .shop_price_multiplier room 100

#multiplies
execute if score .gold_digger artifact matches 1.. run scoreboard players add .shop_price_multiplier room 50

#end
$scoreboard players operation .shop_price_$(id) room *= .shop_price_multiplier room
$scoreboard players operation .shop_price_$(id) room /= .100 number

$execute store result storage shop items.$(id).gold int 1 run scoreboard players get .shop_price_$(id) room
$execute if score @p gold >= .shop_price_$(id) room run data modify storage shop items.$(id).tag set value white
$execute if score @p gold < .shop_price_$(id) room run data modify storage shop items.$(id).tag set value red

$scoreboard players operation .shop_price_less_$(id) room = .shop_price_$(id) room
$scoreboard players remove .shop_price_less_$(id) room 1

$execute store result storage shop items.$(id).gold_less int 1 run scoreboard players get .shop_price_less_$(id) room