Completely overhauls string comparison system for Affixes.
Now, the comparison system uses localized, pre-defined values instead of autogenerated strings to display comparisons. This is done through the AffixTooltip and AffixTooltipsHandler classes.
Affixes also auto-generate localization, with the format {1}{0} to stat, which would display in game as {+/-}{value} to stat
Localizes the effects of all Affixes.
Fixes GenerateImplicits not being used, made Uniques use it instead of GenerateAffixes.
Fixes a lot of Uniques not using proper localization, affix values.
Fixes some Skills not having localization.
Minor cleanup throughout.
Comments
A couple things about this new system.
First, at the moment, this displays all affixes applied to the player. For example, if I have armor that has affixes, and hover over an item, it'll show all of those affixes combined. This should be simple to change if desired.
Second, not all affixes are localized or displayed properly. These are simple fixes; namely displaying Value * 100 or / 100 or what have you on certain affixes, such as those for % increases. Most are perfectly fine though, and these are trivial changes.
Lastly, armor is mostly untested. That being said, Helmets seemed to work fine, and that should continue for Body, Legs and Wings. Both Ring slots and the Necklace slots are unsupported right now as I don't think we have a system for those two.
### Link Issues Resolves: #311
Description of Work
{1}{0} to stat
, which would display in game as{+/-}{value} to stat
Comments
A couple things about this new system. First, at the moment, this displays all affixes applied to the player. For example, if I have armor that has affixes, and hover over an item, it'll show all of those affixes combined. This should be simple to change if desired. Second, not all affixes are localized or displayed properly. These are simple fixes; namely displaying Value * 100 or / 100 or what have you on certain affixes, such as those for % increases. Most are perfectly fine though, and these are trivial changes. Lastly, armor is mostly untested. That being said, Helmets seemed to work fine, and that should continue for Body, Legs and Wings. Both Ring slots and the Necklace slots are unsupported right now as I don't think we have a system for those two.