# kill rewards 12 coins, 6 gems (+33% of enemy killed)
# flag grab rewards 20 coins, 8 gems
# flag capture rewards 80 coins, 30 gems
# coin rain coins are worth 3-5 coins
# coin rain gems are worth 1-2 gems

# coins
data modify storage pctf:shop item.shears set value 15
data modify storage pctf:shop item.axe set value 30

# gems
data modify storage pctf:shop item.upgrade_armor0 set value 10
data modify storage pctf:shop item.upgrade_armor1 set value 20
data modify storage pctf:shop item.upgrade_armor2 set value 40
data modify storage pctf:shop item.upgrade_armor3 set value 80

# gems
data modify storage pctf:shop item.upgrade_melee0 set value 15
data modify storage pctf:shop item.upgrade_melee1 set value 25
data modify storage pctf:shop item.upgrade_melee2 set value 40
data modify storage pctf:shop item.upgrade_melee3 set value 60

# gems
data modify storage pctf:shop item.enchant_armor0 set value 10
data modify storage pctf:shop item.enchant_armor1 set value 30
data modify storage pctf:shop item.enchant_armor2 set value 60

# gems
data modify storage pctf:shop item.enchant_melee0 set value 30
data modify storage pctf:shop item.enchant_melee1 set value 60

# gems
data modify storage pctf:shop item.enchant_ranged0 set value 40

# coins
data modify storage pctf:shop item.wool set value 5
data modify storage pctf:shop item.wood set value 10

# coins
data modify storage pctf:shop item.gold_apple set value 20

# coins
data modify storage pctf:shop item.arrow set value 10
data modify storage pctf:shop item.bread set value 5

# coins
data modify storage pctf:shop item.speed_potion set value 40
data modify storage pctf:shop item.gravity_potion set value 30
data modify storage pctf:shop item.invisibility_potion set value 70
data modify storage pctf:shop item.knockback_resistance_potion set value 50

# coins
data modify storage pctf:shop item.wind_charge set value 25
data modify storage pctf:shop item.trap_kit set value 45
data modify storage pctf:shop item.wool_bomb set value 35
data modify storage pctf:shop item.smoke_bomb set value 40
data modify storage pctf:shop item.launch_feather set value 25
data modify storage pctf:shop item.honey_pack set value 15
data modify storage pctf:shop item.tnt set value 30

# coins
data modify storage pctf:shop item.zombie_snowball set value 30
data modify storage pctf:shop item.mega_zombie_snowball set value 70
data modify storage pctf:shop item.flamethrower set value 25

# gems
data modify storage pctf:shop item.reroll_scrolls set value 15

execute as @e[type=minecraft:chest_minecart] run function pctf:logic/shop/mask with storage pctf:shop item
execute if score .apocalypse settings matches 1 as @e[type=minecraft:chest_minecart] run function pctf:logic/shop/mask_apocalypse with storage pctf:shop item
execute if score .wizard_battle settings matches 1 as @e[type=minecraft:chest_minecart] run function pctf:logic/shop/mask_wizard_battle with storage pctf:shop item
execute if score .apocalypse settings matches 1 if score .wizard_battle settings matches 1 as @e[type=minecraft:chest_minecart] run function pctf:logic/shop/mask_apocalypse_wizard with storage pctf:shop item