Accept more colors in designs as valid (independently of clan/gender and mixing highlights/hair and both eyes).

This commit is contained in:
Ottermandias 2024-12-29 15:48:54 +01:00
parent ebd3fb3fbf
commit 70cf21cf57
4 changed files with 85 additions and 18 deletions

View file

@ -11,12 +11,15 @@ namespace Glamourer.GameData;
/// </summary>
public class CustomizeSet
{
internal CustomizeSet(SubRace clan, Gender gender)
private NpcCustomizeSet _npcCustomizations;
internal CustomizeSet(NpcCustomizeSet npcCustomizations, SubRace clan, Gender gender)
{
Gender = gender;
Clan = clan;
Race = clan.ToRace();
SettingAvailable = 0;
_npcCustomizations = npcCustomizations;
Gender = gender;
Clan = clan;
Race = clan.ToRace();
SettingAvailable = 0;
}
public Gender Gender { get; }
@ -85,6 +88,7 @@ public class CustomizeSet
{
if (IsAvailable(index))
return DataByValue(index, value, out custom, face) >= 0
|| _npcCustomizations.CheckColor(index, value)
|| NpcOptions.Any(t => t.Type == index && t.Value == value);
custom = null;