You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, since HCFiresuit supposed to prevent to get burned at all, would not make more sense to actually break out from function all together after finding it? no point of all other calculation when in the end burn is caped to 100 and protection is 200 (and that was my 2nd observation)
The text was updated successfully, but these errors were encountered:
This line means the first loop ensure the burnPower will never be > 0, so it gives 100% protection. You're right though, it looks likes it could just return if the fire suit is being worm as the rest won't apply.
Hey,
Was looking into code and had two observations about getBurned function:
if itemType == "HCFiresuit" then bodyProtection[1]=200; break end
https://github.com/robotex140/Hydrocraft/blob/main/Contents/mods/Hydrocraft/media/lua/server/HCFire.lua#L26-L28
Also, since HCFiresuit supposed to prevent to get burned at all, would not make more sense to actually break out from function all together after finding it? no point of all other calculation when in the end burn is caped to 100 and protection is 200 (and that was my 2nd observation)
The text was updated successfully, but these errors were encountered: