613
you are viewing a single comment's thread
view the rest of the comments
[-] Randomocity@sh.itjust.works -4 points 5 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
613 points (98.1% liked)

Programmer Humor

32050 readers
1518 users here now

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

Rules:

founded 5 years ago
MODERATORS