Skip to content

Conversation

@mlyoung25
Copy link

Hi Steiner,

not sure if this is still maintained as I'm sure its very old but I'm a big fan of your simulator. I use it during classes to pass the time. I wanted to make this simulator more cartridge accurate and slightly less frustrating by making the level down feel more in player control though by making the simulator levelDown function act how it does in game.

"Flipping a Voltorb will cause the player to lose all coins earned during the current string of multipliers and end the game. If the player flipped fewer multiplier cards (including ×1 cards) than the current level number before the round ends, they drop down to the level equal to the number of multiplier cards flipped. For example, flipping 3 cards before losing will cause the player to regress to level 3." -Bulbapedia (https://bulbapedia.bulbagarden.net/wiki/Voltorb_Flip)

I will still probably play even if you don't pull but if you pull and it works correctly I would enjoy it more alongside others who have apparently had this as an issue since 2021.

Best,

Array.from({ length: level }, (_, i) => relative(i + 1, level))
)
export function levelDown(flippedtiles, level) {
return max(level-flippedtiles,1)
Copy link

@rosella500 rosella500 Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I missing something or would this mean flipping 0 tiles is the way to stay at your level, where flipping more would actually guarantee you get sent back down to 1?

return max(min(level,flippedtiles),1) seems like it makes more sense. If you're at level 5, you've flipped 8 tiles, you return to the max of 5 and 1, or stay at level 5. If you're at level 8 and flipped 0 tiles, you return the max of 0 and 1 and fall all the way back to 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants