mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 20:33:43 +01:00
Allow item swapping between from accessories and hats to other accessory types.
This commit is contained in:
parent
19dde3cbc4
commit
1b7360f8be
6 changed files with 243 additions and 38 deletions
|
|
@ -35,6 +35,16 @@ public readonly struct EqdpManipulation : IMetaManipulation< EqdpManipulation >
|
|||
Entry = Eqdp.Mask( Slot ) & entry;
|
||||
}
|
||||
|
||||
public EqdpManipulation Copy( EqdpManipulation entry )
|
||||
{
|
||||
if( entry.Slot != Slot )
|
||||
{
|
||||
var (bit1, bit2) = entry.Entry.ToBits( entry.Slot );
|
||||
return new EqdpManipulation(Eqdp.FromSlotAndBits( Slot, bit1, bit2 ), Slot, Gender, Race, SetId);
|
||||
}
|
||||
return new EqdpManipulation(entry.Entry, Slot, Gender, Race, SetId);
|
||||
}
|
||||
|
||||
public EqdpManipulation Copy( EqdpEntry entry )
|
||||
=> new(entry, Slot, Gender, Race, SetId);
|
||||
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ public readonly struct MetaManipulation : IEquatable< MetaManipulation >, ICompa
|
|||
{
|
||||
Type.Eqp => Eqp.Copy( other.Eqp.Entry ),
|
||||
Type.Gmp => Gmp.Copy( other.Gmp.Entry ),
|
||||
Type.Eqdp => Eqdp.Copy( other.Eqdp.Entry ),
|
||||
Type.Eqdp => Eqdp.Copy( other.Eqdp ),
|
||||
Type.Est => Est.Copy( other.Est.Entry ),
|
||||
Type.Rsp => Rsp.Copy( other.Rsp.Entry ),
|
||||
Type.Imc => Imc.Copy( other.Imc.Entry ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue