ModernUO/Projects/UOContent/Misc
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
..
Gifts/Winter2004 fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
AccountPrompt.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
Animations.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
AOS.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
AttackMessage.cs fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
AutoRestart.cs feat: Adds auto archiving (#794) 2021-09-25 17:22:05 -07:00
Broadcasts.cs Fixes exiting/crash handling/ctrl+c (#237) 2020-09-12 00:05:38 -07:00
BuffIcons.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
CharacterCreation.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
Cleanup.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
ClientVerification.cs fix: Fixes ValueStringBuilder empty ctor issue (#1035) 2022-05-27 17:49:36 -07:00
CrashGuard.cs fix: Cleans up file system paths and archiving (#815) 2021-10-05 08:54:44 -07:00
DispellableAttribute.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
DispellableFieldAttribute.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
DoorGenerator.cs fix(core): Tightens the network stack (#479) 2021-02-07 23:30:56 -08:00
Email.cs fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
Emitter.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
FoodDecay.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
Geometry.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
Guild.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
HardwareInfo.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
InhumanSpeech.cs fix(core): Converts healthbar packets (#367) 2020-12-27 23:22:21 -08:00
Keywords.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
LanguageStatistics.cs C# 9 Cleanup (#325) 2020-11-27 00:29:21 -08:00
LightCycle.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
LoginStats.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
Loot.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
LootPack.cs fix: Cleans up string substring (#1018) 2022-05-14 16:56:03 -07:00
MondainsLegacy.cs Fixes dupe exception (#258) 2020-09-19 15:46:07 -07:00
NameList.cs fix(core): Fixes errors from missing files (#511) 2021-02-14 18:30:53 -08:00
NameVerification.cs fix(core): Optimizes strings / .NET 5 compatibility changes (#354) 2020-12-20 23:21:55 -08:00
Notoriety.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
PacketThrottles.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
Paperdoll.cs fix(core): Converts remaining player packets (#374) 2020-12-30 16:09:51 -08:00
Poison.cs fix: Codegens Food & Beverages (#1021) 2022-05-15 21:56:04 -07:00
ProfanityProtection.cs fix(core): Tightens the network stack (#479) 2021-02-07 23:30:56 -08:00
ProfessionInfo.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
Profile.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
RaceDefinitions.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
RegenRates.cs fix: Cleanup IPoint3D calls (#704) 2021-08-19 09:11:48 -07:00
RenameRequests.cs fix(core): Optimizes strings / .NET 5 compatibility changes (#354) 2020-12-20 23:21:55 -08:00
ResourceInfo.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
ServerAccess.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
ServerList.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
ShardPoller.cs feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
ShrinkTable.cs fix(core): Fixes errors from missing files (#511) 2021-02-14 18:30:53 -08:00
SkillCheck.cs fix: Fixes stats for earlier expansions (#950) 2022-02-28 07:04:07 -08:00
TextDefinition.cs fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Titles.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
ToggleItem.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
TreasureMapProtection.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
ValidationQueue.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
Weather.cs feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
WebStatus.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
WeightOverloading.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
WelcomeTimer.cs Removes UOAM vendors. (#241) 2020-09-12 11:56:52 -07:00