YesntSoup 2c4d99a84c
Change AddAchievementPoints to account for overflow and underflow (#8)
This is for minisaurs in WoJ, but I think it would be a good idea in general, so I didn't limit it to WoJ.

The issue happens because if you buy medicine for minisaurs. It takes away one coin, and so if you already have 0 coins, the server currently returns your coin count as int.MaxValue.

This is tested in WoJ 1.1.0 and 1.21.0. I tested buying, overflowing, underflowing, using commands with big and negative values and playing games.
2024-11-19 22:50:19 +01:00
..
2024-07-25 22:54:48 +02:00
2024-07-25 22:54:48 +02:00
2023-10-17 07:58:04 +02:00
2024-04-09 00:21:06 +00:00
2024-04-09 00:21:06 +00:00