[Content Patcher] add range conditions
Pathoschild opened this issue ยท 3 comments
Possible range syntax:
syntax | meaning |
---|---|
100 |
exactly 100. |
~100 |
max 100. |
100~ |
min 100. |
1~100 |
any value between 1 and 100, inclusively. |
Possible alternative based on npm:
syntax | meaning |
---|---|
100 |
exactly 100. |
>=100 |
max 100. |
<=100 |
min 100. |
>=1 <=100 |
any value between 1 and 100, inclusively. |
Discussed in #modding on Discord; the min~max
syntax is generally preferred, even if it's a bit less powerful.