Small Glamourer stuff.

This commit is contained in:
Ottermandias 2023-06-21 18:02:55 +02:00
parent f88b5761ba
commit 0690c0c53c
3 changed files with 8 additions and 5 deletions

@ -1 +1 @@
Subproject commit a79abe203da2673f71a4e31422c6058375fb8dec
Subproject commit 201dd38e88ebc1762070b8e691d2600375f5c8a4

View file

@ -31,11 +31,11 @@ public struct CharacterArmor : IEquatable<CharacterArmor>
public readonly CharacterArmor With(StainId stain)
=> new(Set, Variant, stain);
public readonly CharacterWeapon ToWeapon()
=> new(Set, 0, Variant, Stain);
public readonly CharacterWeapon ToWeapon(WeaponType type)
=> new(Set, type, Variant, Stain);
public readonly CharacterWeapon ToWeapon(StainId stain)
=> new(Set, 0, Variant, stain);
public readonly CharacterWeapon ToWeapon(WeaponType type, StainId stain)
=> new(Set, type, Variant, stain);
public override readonly string ToString()
=> $"{Set},{Variant},{Stain}";

View file

@ -40,6 +40,9 @@ public struct CharacterWeapon : IEquatable<CharacterWeapon>
Stain = (StainId)(value >> 48);
}
public readonly CharacterWeapon With(StainId stain)
=> new(Set, Type, Variant, stain);
public readonly CharacterArmor ToArmor()
=> new(Set, (byte)Variant, Stain);