yeah, that happens, but it's about learning i guess. By the way i never use == unless i absolutely have to, <=, => can stop a lot of edge cases from causing truble.
Viewing post in Sands of Avarice jam comments
Yeah, at the time it made sense to use '==' since it had to do with player health and there were some specific things that needed to happen when health was exactly zero (and it was easier to just let the player keep taking damage afterwards, and to work around that). This wasn't an issue since everything in the game did exactly 1 damage. Then I introduced sea mines which do double damage if you're too close and completely forgot to update the original code. It doesn't actually affect gameplay (you still lose if your health goes below 1), it's just annoying.