• DarkSirrush@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    7 days ago

    Fun fact: the maximum amount of money you can hold in Maple story is actually half the 32 bit maximum, at 2,147,483,647.

    • dual_sport_dork 🐧🗡️@lemmy.worldM
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 days ago

      That means it’s being stored as a signed integer for some reason. The other half of the binary space is for the negative values, which was probably a poor choice. Unless there is a valid case when you can have negative money. Is debt a thing in Maple Story?

      • DarkSirrush@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        7 days ago

        Not at all, but it definitely used to get exploited a lot back in the day.

        I bet they thought using signed integers made math easier or something.