# Two Layers. 1 Cost Increase

**URL:** <https://forums.moddingtree.com/t/two-layers-1-cost-increase/571>\
**Category:** Modding Developers\
**Tags:** medium, active-playstyle\
**Created:** [May 4, 2022, 10:12pm UTC](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571 "2022-05-04T22:12:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alezman](https://forums.moddingtree.com/user_avatar/forums.moddingtree.com/alezman/32/96_2.png) [@alezman](https://forums.moddingtree.com/u/alezman)\
**Post date:** [May 4, 2022, 10:12pm UTC](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571/1 "2022-05-04T22:12:06Z")

</div>

I got a question. I want to make it so after I purchase an upgrade, it unlocks two layers. Layer 1 provides with challenges, while Layer 2 provides with buyables.

Now, I understand how to make the layers, and make their content. However, my question is: **How do I make it, so that after you purchase a layer, the other one’s requirement grows and finally after purchasing the other layer it goes back to its normal price?**

Sincerely, alez.

**Example: Layer 1 and 2 both cost 100 points. Upon buying Layer 1, Layer 2 costs 50,000 points now and vice-versa.**

---

<div class="post-metadata">

**Author:** ![Eternahedron](https://forums.moddingtree.com/user_avatar/forums.moddingtree.com/eternahedron/32/400_2.png) [@Eternahedron](https://forums.moddingtree.com/u/Eternahedron)\
**Post date:** [May 17, 2022, 1:08am UTC](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571/3 "2022-05-17T01:08:51Z")

</div>

thats what she said /s

---

<div class="post-metadata">

**Author:** ![nalmedirdovertinx123](https://forums.moddingtree.com/letter_avatar_proxy/v4/letter/n/53a042/32.png) [@nalmedirdovertinx123](https://forums.moddingtree.com/u/nalmedirdovertinx123)\
**Post date:** [July 20, 2022, 7:05pm UTC](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571/4 "2022-07-20T19:05:39Z")

</div>

this layer is b, the other layer is a  
` requires() { new Decimal(100).times(new Decimal(500).pow((player.b.unlockOrder&&!player.b.unlocked))) }`
