ModernUO/Projects/UOContent/Engines
Kamron Batman b74b47159f
fix: Fixes localization corner cases with OPL (#1050)
## Changes
- [X] Adds OPL convenience methods
    - `opl.Add(cliloc, value)` and `opl.Add(value)` - value as an integer or string works just like `opl.Add(cliloc, $"{value}")`
    - `opl.AddLocalized(cliloc, clilocValue)` - works the same as `opl.Add(cliloc, $"#{clilocValue}");`
- [X] Simplifies basic `list.Add()` situations
- [X] Changes cliloc as an argument so it works with custom IPropertyList implementations (HTML)
- [X] Fixes plants so they support the old localization and new (changed in 7.0.12.0+)
- [X] Exposes more methods to override for Item to make creating custom OPL possible.

## Important Notes
* Using a ternary as an argument, like this `opl.Add(number, showType ? $"{type}\t{value}" : $"{value}");` _will not use the correct string interpolation_. This means if you use a custom PropertyList (for HTML or some other purpose), the property list won't be localized properly.
* All localization values must be interpolated, even if they are literal strings, or integers. Example: `opl.Add(number, $"{"Charges"}\t{m_Charges}");` is correct. Using the following: `$"Charges\t{m_Charges}"` will not work for custom PropertyList implementations!
2022-06-12 21:17:42 -07:00
..
Bulk Orders fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
CannedEvil fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Chat fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
ConPVP fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Craft fix: Adds more null checks for text definition to prevent NPEs (#936) 2022-02-18 11:13:38 -08:00
Doom fix: Fixes TextDefinition and optimizes CraftItem (#930) 2022-02-12 22:42:50 -08:00
Ethics fix: Fixes ValueStringBuilder empty ctor issue (#1035) 2022-05-27 17:49:36 -07:00
Events fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
Factions fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Harvest fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
Help fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
Khaldun fix: Codegens lockable containers and cleans up lockpickable (#976) 2022-03-26 21:48:18 -07:00
ML Quests fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
Party fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
Pathing fix: Fixes bad movement checks (#960) 2022-03-15 19:39:52 -07:00
Plants fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Quests fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Spawners fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Stealables fix: Fixes factions and makes it static (#993) 2022-05-10 11:57:37 -07:00
Treasures of Tokuno fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
UltimaStore fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
Veteran Rewards fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Virtues chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00