applyTemperatureDamage min and max are swapped

2 Likes

Are you sure you know how min and max work?

Because I know that min takes the smaller of the two and max takes the bigger of the two.

1 Like

Weird. I looked at that code then. Then looked again. Still thought it’s wrong.
Now I think it’s right. Boolean functions… My weakness :stuck_out_tongue:

2 Likes

But that isn’t even a Boolean! It returns a Number! XD

1 Like

One of two numbers. Boolean-like decision :stuck_out_tongue:

2 Likes

How does Java not have a Math.clamp function… >.<

1 Like