mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Add Hrothgar face hacks to race changing fixing of values.
This commit is contained in:
parent
ed329ec989
commit
3ad67f661a
2 changed files with 24 additions and 2 deletions
|
|
@ -238,7 +238,29 @@ public sealed class CustomizeService(
|
||||||
private static CustomizeFlag FixValues(CustomizeSet set, ref CustomizeArray customize)
|
private static CustomizeFlag FixValues(CustomizeSet set, ref CustomizeArray customize)
|
||||||
{
|
{
|
||||||
CustomizeFlag flags = 0;
|
CustomizeFlag flags = 0;
|
||||||
foreach (var idx in CustomizationExtensions.AllBasic)
|
|
||||||
|
// Hrothgar face hack.
|
||||||
|
if (customize.Race is Race.Hrothgar)
|
||||||
|
{
|
||||||
|
if (customize.Face.Value is < 5)
|
||||||
|
{
|
||||||
|
customize.Face += 4;
|
||||||
|
flags |= CustomizeFlag.Face;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (customize.Face.Value is > 4 and < 9)
|
||||||
|
{
|
||||||
|
customize.Face -= 4;
|
||||||
|
flags |= CustomizeFlag.Face;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ValidateCustomizeValue(set, customize.Face, CustomizeIndex.Face, customize.Face, out var fixedFace, false).Length > 0)
|
||||||
|
{
|
||||||
|
customize.Face = fixedFace;
|
||||||
|
flags |= CustomizeFlag.Face;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var idx in CustomizationExtensions.AllBasicWithoutFace)
|
||||||
{
|
{
|
||||||
if (set.IsAvailable(idx))
|
if (set.IsAvailable(idx))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit a30471344f971cc42828006dfa07d37317598a29
|
Subproject commit da99d9b2b3c51b2bbeb40226c692dff2cbcd5cbc
|
||||||
Loading…
Add table
Add a link
Reference in a new issue