With all 83 maps updated to use the new Categorization functions, I am removing the old functions to avoid accidental applications of the wrong objectives.
This includes:
addObjectiveSimple (replaced with addCategoryObjectiveSimple)
addObjectiveWithCounter (replaced with addCategoryObjectiveWithCounter)
addObjectiveWithTimer (replaced with addCategoryObjectiveWithTimer)
addObjectiveFromData (replaced with addCategoryObjectiveFromData)
showObjective (replaced with setObjectivieVisibility)
The meta-function addObjective has also been internalized to ensure it isn't accidentally directly used and users only use the addCategoryObjective options.
Testing
I used the following script to verify no instances of addObjective were in use anymore:
find . -type f -name "*MapScript*" -exec grep -l "addObjective" {} +
It gave 3 results, but I verified those 3 are for the addObjectiveExtraLine function, and not one of these deprecated functions above.
Then I searched for any instances of showObjective with this:
find . -type f -name "*MapScript*" -exec grep -l "showObjective" {} +
No results were found.
Everything has been successfully replaced and the deprecated functions have now been removed.
With all 83 maps updated to use the new Categorization functions, I am removing the old functions to avoid accidental applications of the wrong objectives. This includes:
addCategoryObjectiveSimple
)addCategoryObjectiveWithCounter
)addCategoryObjectiveWithTimer
)addCategoryObjectiveFromData
)setObjectivieVisibility
)The meta-function
addObjective
has also been internalized to ensure it isn't accidentally directly used and users only use theaddCategoryObjective
options.Testing
I used the following script to verify no instances of
addObjective
were in use anymore:find . -type f -name "*MapScript*" -exec grep -l "addObjective" {} +
It gave 3 results, but I verified those 3 are for theaddObjectiveExtraLine
function, and not one of these deprecated functions above.Then I searched for any instances of
showObjective
with this:find . -type f -name "*MapScript*" -exec grep -l "showObjective" {} +
No results were found.Everything has been successfully replaced and the deprecated functions have now been removed.