Refactor: NpcNameFinder
SearchMode.Fuzzy
default for non corpse names and small improvements
#506
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On the Wrath classic PTR there's a new accessibility feature which allows to adjust the minimum size of the Npc names.
The recommended
Minimum Character Name Size
value is 6 or 8 for 1920x1080 resolution.This greatly helps a NpcNameFinder component! There's one challenge what needs to be tackled meanwhile. As soon as the
Minimum Character Name Size
is changed from 0 there are some distance based alpha blending going on.So
SearchMode.Simple
yields really poor results, only works in really close range. HoweverSearchMode.Fuzzy
mode allows to detect shades of that given color. It works really well with friendly(green), neutral(yellow) and enemies(red).For Corpse(grey / RGB=128) type names however, it's a more trickier situation since that shade is way too common in the game so for now
SearchMode.Simple
mode is used for this case.