Colind8 / Mr.-Megee

Mr. Megee is a Discord bot that may or may not be sentient.
https://discord.com/oauth2/authorize?client_id=472812336214966283&permissions=313408&scope=bot
1 stars 1 forks source link

Improve performance when using the freebie perk #4

Closed Colind8 closed 1 year ago

Colind8 commented 1 year ago

Currently it uses a for loop which can become intense if the user has a lot of XP.

10,000 iterations if the user converts 1,000,000 xp.

Colind8 commented 1 year ago

Found a bug with freebie where the chance to get coins was actually lessened with the spiderweb (1/10 and 1/30 chances were swapped). It doesn't matter now though since freebie is being rewritten, but worth mentioning.