ModernUO/Projects/UOContent/Multis/Houses
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
..
BaseHouse.cs fix: Fixes house update range bug (#1790) 2024-05-23 16:07:33 -07:00
ContestHouses.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
HouseFoundation.cs fix: Fixes house update range bug (#1790) 2024-05-23 16:07:33 -07:00
HousePackets.cs feat: Replaces Zlib with LibDeflate (#1774) 2024-05-16 22:53:01 -07:00
HousePlacement.cs fix: Refactors getting static tiles to use enumerators (#1611) 2023-11-26 09:39:46 -08:00
HousePlacementTool.cs fix: Codegens house/vendors (#1767) 2024-05-08 22:45:59 -07:00
Houses.cs fix(houses): Converts house packets (1 of 2) (#502) 2021-02-13 09:18:12 -08:00
HouseSign.cs fix: Codegens house/vendors (#1767) 2024-05-08 22:45:59 -07:00
HouseTeleporter.cs fix: Fixes dupe property copying. Adds IgnoreDupe (#1811) 2024-06-02 15:04:54 -07:00
MovingCrate.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
PreviewHouse.cs fix: Fixes spell mechanics and misc bugs (#1118) 2022-07-14 22:01:59 -07:00