-
Notifications
You must be signed in to change notification settings - Fork 268
Description
Describe the bug
As pointed out in #3011 there are several macro script functions that use case sensitive comparison within the function to check which function was called.
These should all be case insensitive searches, if they are not at best user gets a message saying function is not defined which is inconsistent with other functions, in the worst case the wrong function gets executed.
The list of files that definitely need to be checked/modified
- ChatFunction.java
- CurrentInitiativeFunction.java
- DefineMacroFunction.java
- EvalMacroFunctions.java
- ExportDataFunctions.java
- FindTokenFunctions.java
- FogOfWarFunctions.java
- HeroLabFunctions.java
- InitiativeRoundFunction.java
- JSONMacroFunctionsOld.java
- MacroArgsFunctions.java
- MacroDialogFunctions.java
- MapFunctions.java
- MathFunctions.java
- MiscInitiativeFunction.java
- ParserPropertyFunctions.java
- PlayerNameFunctions.java
- RemoveAllFromInitiativeFunction.java
- RESTfulFunctions.java
- StringFunctions.java
- TokenBarFunction.java
- TokenCopyDeleteFunctions.java
- TokenGMNameFunction.java
- TokenHaloFunction.java
- TokenImage.java
- TokenLabelFunction.java
- TokenLocationFunctions.java
- TokenMoveFunctions.java
- TokenPropertyFunctions.java
- TokenSelectionFunctions.java
- TokenSightFunctions.java
- TokenSpeechFunctions.java
- TokenStateFunction.java
- TokenTerrainModifierFunctions.java
- TokenVisibleFunction.java
- Topology_Functions.java
To Reproduce
Steps to reproduce the behaviour:
Run any of the above functions with the wrong case.
Expected behaviour
All MTScript functions should be case insensitive as that's how the parser is treating them.
Screenshots
If applicable, add screenshots to help explain your problem.
MapTool Info
- Current develop branch (but many many released version)
Desktop (please complete the following information):
- All
Additional context
For anyone wanting to tackle this feel free to split it up into several issues to make it easier to tackle, but please not dozens of PRs at the same time with just one or two done in each of them (unless you are already editing that file for another change).