ruiaraujo012 / fx-clash-stats-web

https://ruiaraujo012.github.io/fx-clash-stats-web/
12 stars 5 forks source link

Calculate the coins and cards needed to upgrade assets for each level #4

Closed ruiaraujo012 closed 1 year ago

ruiaraujo012 commented 1 year ago

Assets Max Levels:

Type Max Level
Common 11
Rare 9
Epic 8

Coins:

The cost is calculated based on the series number.

Assets of series 1 cost 200 to upgrade to level 2, assets of series 2 cost 200+10%, Series 3 cost 200+20% and so on...

This means that the equation is base cost + [(series number - 1) * 10]% or base cost + base cost * (series number - 1) * 10 / 100.

This example is based on Common assets, but the same applies to Rare and Epic.

Cards:

The cost is fixed:

Level Cards
1 0
2 4
3 10
4 20
5 50
6 100
7 200
8 400
9 1,000
10 2,000
11 4,000