Versions
Describe the bug
in the colorizeValue function there is actually no guarantee, what the type of the returned value is.
You would think it to be always a string, but in the marked path (see image), it can also be equal to the type of the input value.
To Reproduce
Steps to reproduce the behavior:
- Start the game with the "Dev Console" mod
- While in the main menu, open the console
- Type this into the console:
return format("%s", ::MSU.Text.colorizeValue(0))
- See error
Expected behavior
Whenever colorizeValue returns a value, that value must be of the type "string"
Screenshots
Log
log.html
Versions
Describe the bug
in the colorizeValue function there is actually no guarantee, what the type of the returned value is.
You would think it to be always a string, but in the marked path (see image), it can also be equal to the type of the input value.
To Reproduce
Steps to reproduce the behavior:
return format("%s", ::MSU.Text.colorizeValue(0))Expected behavior
Whenever colorizeValue returns a value, that value must be of the type "string"
Screenshots
Log
log.html