https://playcanvas.com/editor/scene/1139351
Whenever I press any of the game’s “Upgrades” (“Comfort” button and others grouped alongside it) it should add only whole numbers to each song’s PayOut number that dictates how much you get for listening.
I’m having a lot of trouble getting the number displayed with each song to remain a whole number. I’ve added whole bunches of zeroes to the numbers to attempt to round them more effectively, and also added a few “precision: 1” functions too.
The logic to operate these buttons and the text displayed are globals.js, clairText.js, raindropText.js, mapleText.js, gymText.js, and mountainText.js.
I really truly can’t figure out how to make the number display as a whole number every time. If you click each of the upgrades up to Level 4, you’ll see how some buttons create bonuses like +99.999999999999991 instead of +100 and so forth.