Traps-big-gay t1_ittpg2e wrote on October 26, 2022 at 6:16 AM Reply to comment by iwrite4myself in [WP] You are an NPC in an RPG. Normally, your attack is set to 1. However, a player used a cursed item on you, reducing your attack by 2, causing it to underflow, making you the most powerful in the game. by alegonz If your code uses unsigned integers it can't handle negatives, so it loops back to the highest positive value Permalink Parent 4
Traps-big-gay t1_ittpg2e wrote
Reply to comment by iwrite4myself in [WP] You are an NPC in an RPG. Normally, your attack is set to 1. However, a player used a cursed item on you, reducing your attack by 2, causing it to underflow, making you the most powerful in the game. by alegonz
If your code uses unsigned integers it can't handle negatives, so it loops back to the highest positive value