I'm not really sure how to ask this. I'm updating my curing system for Achaea. and since it needs so much work anyway, I figured I may as well update other things too.
Is a boolean value faster to assign or compare to something else than integers? I might change my arrays to hold values of 1 or 0 instead of true/false if it's more efficient. Also, some afflictions can be have up to 8 (I think) levels, so those might have to be integer assignments anyway. For example, aff.wristfractures = 4 (up to 8), if I get hit with an attack enough times for my wrists to be fractured 4 times.
Does the logic in Lua see integer 1 and boolean true as equal? Like:
Is a boolean value faster to assign or compare to something else than integers? I might change my arrays to hold values of 1 or 0 instead of true/false if it's more efficient. Also, some afflictions can be have up to 8 (I think) levels, so those might have to be integer assignments anyway. For example, aff.wristfractures = 4 (up to 8), if I get hit with an attack enough times for my wrists to be fractured 4 times.
Does the logic in Lua see integer 1 and boolean true as equal? Like:
if 1 == true then
Note ("True")
end