Saving LoveLevel as decimal numbers

Create issue
Issue #15 resolved
mezzodrinker created an issue

I myself am using some functions to determine the "effectivity" of an action, resulting in love levels with 2 digits behind the decimal point. After calculating the value, SetLoveLevel($lovelevel) is called. Because SetLoveLevel($lovelevel) saves $lovelevel as an integer, the 2 digits from before are being cut off, resulting in a lack of accuracy (e.g. 25.75 gets 25).

If I understand the Language Reference correctly (and, of course, the one of Lua), all numbers are being processed as decimal numbers anyway. So what about processing the LoveLevel as a decimal number as well?

Comments (2)

  1. Log in to comment