ModernUO/Projects/Server/Items
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
..
BaseMulti.cs fix: Fixes issue with duping items and serialization, and sector lists. (#1662) 2024-01-23 23:08:52 -08:00
BaseMulti.SectorMultiLinkList.cs fix: Adds multis to map iterators, fixes searching empty nested containers (#1581) 2023-11-05 08:17:34 -08:00
Container.cs fix: Fixes max items serializatio n issue (#1728) 2024-04-12 14:11:58 -07:00
Container.Enumerable.cs fix: Updates container searches for non-generic types (#1567) 2023-11-23 09:29:45 -08:00
Containers.cs fix: Fixes critical serial dupe bug and deserialization/serialization issues. (#1245) 2022-11-13 15:54:58 -08:00
Item.cs fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00
ItemBounds.cs feat: Cleans up UOP file handling. Adds automatic bounds.bin generation (#1744) 2024-05-01 20:02:06 -07:00
Layer.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
LightType.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
SecureTradeContainer.cs fix: Cleans up core code (#1187) 2022-10-10 21:47:08 -07:00
VirtualCheck.cs fix: Consolidates Color/Center html (#1762) 2024-05-07 23:56:32 -07:00
VirtualHair.cs fix: Fixes more packet initializations (#1507) 2023-09-19 00:02:17 -07:00