614
you are viewing a single comment's thread
view the rest of the comments
[-] Randomocity@sh.itjust.works -4 points 8 months ago

This won't work if you can ever take more than 1 damage. If you were at 1 and received 2 damage you would become invincible. You'd want to do less than or equal to.

this post was submitted on 28 Mar 2024
614 points (98.1% liked)

Programmer Humor

32692 readers
482 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS