redpangilinan / dungeon-crawler-rpg-od

Quick dungeon crawler experience on demand with diablo inspired looting system!
https://repulzor.itch.io/dungeon-crawler-od
GNU General Public License v3.0
183 stars 33 forks source link

Idea to show the value of an upgrade next to the raw percentage. #3

Open Taklaminon opened 6 months ago

Taklaminon commented 6 months ago

I was playing the game with notepad and desmos open, but I got kind of annoyed switching between the tabs, so I figured it'd be nice if the level up screen told you how much a level actually changes your current stat. For instance, if you already have +100% damage, the value would show up as 4% rather than 8%.

Attached is the function generateLvlStats() with this change implemented, along with a screenshot of the change in-game.

generateLvlStats.txt changeInGame

edit: previous code used an incorrect formula for the marginal value of atkSpd.

7underlines commented 1 day ago

@Taklaminon I have integrated this into my fork of the game and credited you in the changelog. I hope this is fine with you. Thank you for the script! https://github.com/Werkstattl/quick-dungeon-crawler-rpg-od/?tab=readme-ov-file#recent-changelog