summary |
shortlog |
changelog |
graph |
tags |
bookmarks |
branches |
files |
changeset |
file |
latest |
revisions |
annotate |
diff |
comparison |
raw |
help

LuaRules.wiki

changeset 2192 | edf132b3d2b8 |

parent 2191 | aade57b7b63e |

child 2195 | f9dc7606394c |

--- a/LuaRules.wiki Mon Oct 12 02:09:44 2020 +0200 +++ b/LuaRules.wiki Mon Oct 12 02:10:00 2020 +0200 @@ -6,11 +6,11 @@ For behavior in your script that affects actual gameplay, there are restrictions of what you can do with numbers. These are the rules: -* Only integer numbers are allowed; floating-point numbers are forbidden -* If you divide, divide by powers of 2 if you can -* If you want to divide by a different integer value, use the `div` function for integer division -* Keep your numbers within (+/-) 2<sup>53</sup> -* Avoid `math.floor` and `math.ceil` + * Only integer numbers are allowed; floating-point numbers are forbidden + * If you divide, divide by powers of 2 if you can + * If you want to divide by a different integer value, use the `div` function for integer division + * Keep your numbers within (+/-) 2<sup>53</sup> + * Avoid `math.floor` and `math.ceil` These restrictions on numbers don't apply to numbers that you don't use for gameplay but for stuff like harmless eye candy.