ModernUO/Projects/UOContent/Items/Armor
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
..
Artifacts fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Bone fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Chain fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Cloth fix: Adds ReadType/Write(Type) and improves type referencing (#1172) 2022-10-11 22:17:22 -07:00
DaemonBone fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Dragon fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Glasses feat: Adds SerializedCommandProperty (#1249) 2022-11-14 18:24:33 -08:00
Helmets feat: Adds leather/metal food, fixes weapons/armors with wrong materials (#1718) 2024-04-04 19:43:02 -07:00
Leather feat: Updates to Serialization Generator v2.2 (#1157) 2022-09-04 08:45:27 -07:00
Plate fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Ranger fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Ring fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Stone fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Studded fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
ArmorEnums.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
BaseArmor.cs fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00
BaseArmor.Migrations.cs fix: Fixes crafter deserialize, cleans up bandages, and codegens misc items (#1350) 2023-02-25 00:54:12 -08:00