462
WishUnderflow (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] TheFogan@programming.dev 6 points 3 days ago

Dunno, I know enough duplicate exploits in games to know giving the effect then reducing the item, is a pretty common source of duplication hacks/bugs.

I guess it comes down to which is the designer is more afraid of happening, the chance of a wish being expended but not granted, or granted without expending.

Then again based on disney's aladin, tricking the genie into rescuing him without using a wish, it does seem practical to assume that the genie errors on the side of granting without expending.

[-] DacoTaco@lemmy.world 1 points 3 days ago

Thing is, if an exception is thrown you want to have the counter right where it should be. But yes, a check should be added haha

this post was submitted on 31 Jul 2025
462 points (97.5% liked)

Programmer Humor

25448 readers
936 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS