ModernUO/Projects/UOContent/Items/Special
Kamron Batman 9c7cb5d778
fix: Fixes dupe property copying. Adds IgnoreDupe (#1811)
## Summary

### Changes
- Adds `[IgnoreDupe]` and `[SerializedIgnoreDupe]`
- Updates all _known_ classes that need the attribute. Some might be missing, please helps us find them!
- Adds `Item.Dupe()` command and encapsulates `CopyProperties` and `OnAfterDuped`. This is also overridable.
- Updates Dupe command to use the new logic.
- Fixes duping multiple kinds of objects that used to be outright broken.

### Bug Fixes
- Fixes issue with durability after duping
- Fixes issue with hue after duping

> [!Note]
> **Developer Note**
> Customizing how duping an item works now requires two steps:
> 1. Add `[IgnoreDupe]` or `[SerializedIgnoreDupe]` to the property/field
> 2. Add custom logic in an `OnAfterDuped` override
>
> When do you need to do this?
> *When the property being copied is not a primitive, and you need to manually deep-clone the contents of the property such as with Lists, Dictionaries, or sub classes.*
2024-06-02 15:04:54 -07:00
..
8th Anniversary Items fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00
11th Year promo fix: Codegens promo items (#1355) 2023-02-26 00:48:27 -08:00
AoS Promotional fix: Codegens promo items (#1355) 2023-02-26 00:48:27 -08:00
Broken Furniture Collection fix: Optimizes gump relay info (Prep for Static Gumps) (#1698) 2024-03-07 20:54:53 -08:00
Bulk Order Rewards/Blacksmithy fix: Codegens BOD rewards. (#1361) 2023-03-06 19:01:14 -08:00
Community Collection fix: Codegens BOD rewards. (#1361) 2023-03-06 19:01:14 -08:00
Evil Home Decor Collection fix: Codegens evil decor. Fixes trash items (#1362) 2023-03-06 19:28:58 -08:00
Gifts fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00
Heritage Items fix: Optimizes gump relay info (Prep for Static Gumps) (#1698) 2024-03-07 20:54:53 -08:00
Holiday fix: Fixes bad localized messages (#1722) 2024-04-05 20:28:15 -07:00
House Raffle fix: Consolidates Color/Center html (#1762) 2024-05-07 23:56:32 -07:00
ML fix: Codegens mutation core (#1370) 2023-03-11 17:33:31 -08:00
Mutation Core fix: Fixes serialization and dirty tracking conveniences (#1627) 2023-12-03 15:55:31 -08:00
Rares fix: Codegens rares and solen items (#1371) 2023-03-11 19:25:48 -08:00
Solen Items fix: Fixes hues for Bags of Sending (#1654) 2024-01-06 08:50:36 -08:00
Special Scrolls fix: Fixes issue with cached static gump strings. Fixes bad gump colors (#1771) 2024-05-10 22:44:16 -07:00
Valentines/2007 fix: Fixes veteran rewards (#1374) 2023-03-12 17:28:51 -07:00
Veteran Rewards fix: Cleans up FixHtml (#1757) 2024-05-03 21:24:31 -07:00
HeritageToken.cs fix: Codegens rest of special items (#1467) 2023-08-23 20:02:46 -07:00
MiniHouses.cs fix: Fixes serialization and dirty tracking conveniences (#1627) 2023-12-03 15:55:31 -08:00
MonsterStatuette.cs fix: Optimizes gump relay info (Prep for Static Gumps) (#1698) 2024-03-07 20:54:53 -08:00
RewardCake.cs fix: Codegens rest of special items (#1467) 2023-08-23 20:02:46 -07:00
SoulStone.cs fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00