I noticed that setting the DigAmount to a string representation of an integer works just like an integer. This does not seem to be intended from the instructions on editing the configuration file:
Environment:
Device: Macbook Pro 2015
Browser: Chrome
Steps to Reproduce:
Open Battery.json
Set DigAmount to "10"
Save file
Start Client and Server
Dig normally
Actual Result:
Digging works similarly to when DigAmount is set using an integer
Expected Result:
I would have expected this to fail or to get some sort of warning, or for the instructions to mention that strings are allowed
This is working as intended; the game will cast any value to the intended type (in this case the string "10" is cast to a integer 10). If you give "10a" it will fail.
Description:
I noticed that setting the DigAmount to a string representation of an integer works just like an integer. This does not seem to be intended from the instructions on editing the configuration file:
Environment:
Device: Macbook Pro 2015 Browser: Chrome
Steps to Reproduce:
"10"
Actual Result:
Digging works similarly to when DigAmount is set using an integer
Expected Result:
I would have expected this to fail or to get some sort of warning, or for the instructions to mention that strings are allowed
Severity: Low