ModernUO/Projects/UOContent/Items
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
..
Addons fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Aquarium fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Armor fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Body Parts fix: Fixes missing invalidate properties for default name (#1012) 2022-05-04 14:40:49 -07:00
Books fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Bulletin Boards fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Champion Artifacts fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Clothing fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Construction fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Containers fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Decoration Artifacts fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Deeds fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Facial Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
Farming fix: Codegens farmables (#1001) 2022-04-17 17:10:45 -07:00
Food fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Games fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Gems Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
Guilds fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Jewels fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Lights fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Maps fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Minor Artifacts fix: Fixes quiver damage type modifier (#792) 2021-09-18 11:28:42 -07:00
Misc fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
New Haven Quest Rewards Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
PlantsFlowers/Potted Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
Quivers fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Resources fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Shields fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Skill Items fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Special fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Suits chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
Talismans fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
Traps fix: Adds Poison to codegen (#1002) 2022-04-18 00:05:44 -07:00
TreasureChests fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Wands fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Weapons fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00