give the items/upgrades a instance var Level and BasicCost
Events:
on shop load compare the levels
actions:
shop.upgrade1.level = player.upgrade1.level + 1
shop.upgrade1.cost = (shop.upgrade1.BasicCost * shop.upgrade1.level) / ((shop.upgrade1.level + 50) / 2)