Tendsty / gooboo

An idle / incremental game
GNU General Public License v3.0
84 stars 26 forks source link

bug: Item Mastery progress % is off #61

Closed PanGolob closed 1 month ago

PanGolob commented 5 months ago

The Items progress % displayed doesn't match the numbers.

obraz

There are two ways this info could work:

1) Total progress

In this example the number displayed should be 45.25/50 = 90.5%

2) Progress within current level

In this example the number displayed should be (45.25-5)/(50-5) = 89.4%

currently it is counted as return 100 * (this.item.masteryPoint - before) / this.masteryNeeded;

gooboo/src/components/partial/horde/Item.vue : 221

which is a mix of both worlds