mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix some hrothgar gender change remainders.
This commit is contained in:
parent
303001fed0
commit
d3824d6a23
1 changed files with 5 additions and 6 deletions
|
|
@ -35,11 +35,10 @@ public sealed class CustomizeService(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (applyWhich.HasFlag(CustomizeFlag.Gender))
|
if (applyWhich.HasFlag(CustomizeFlag.Gender))
|
||||||
if (ret.Race is not Race.Hrothgar || newValues.Gender is not Gender.Female)
|
{
|
||||||
{
|
changed |= ChangeGender(ref ret, newValues.Gender);
|
||||||
changed |= ChangeGender(ref ret, newValues.Gender);
|
applied |= CustomizeFlag.Gender;
|
||||||
applied |= CustomizeFlag.Gender;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (applyWhich.HasFlag(CustomizeFlag.BodyType))
|
if (applyWhich.HasFlag(CustomizeFlag.BodyType))
|
||||||
{
|
{
|
||||||
|
|
@ -91,7 +90,7 @@ public sealed class CustomizeService(
|
||||||
/// <summary> Returns whether a gender is valid for the given race. </summary>
|
/// <summary> Returns whether a gender is valid for the given race. </summary>
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
|
||||||
public bool IsGenderValid(Race race, Gender gender)
|
public bool IsGenderValid(Race race, Gender gender)
|
||||||
=> race is Race.Hrothgar ? gender == Gender.Male : CustomizeManager.Genders.Contains(gender);
|
=> CustomizeManager.Genders.Contains(gender);
|
||||||
|
|
||||||
/// <inheritdoc cref="IsCustomizationValid(CustomizeSet,CustomizeValue,CustomizeIndex,CustomizeValue, out CustomizeData?)"/>
|
/// <inheritdoc cref="IsCustomizationValid(CustomizeSet,CustomizeValue,CustomizeIndex,CustomizeValue, out CustomizeData?)"/>
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue