mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-29 03:49:22 +01:00
Accept more colors in designs as valid (independently of clan/gender and mixing highlights/hair and both eyes).
This commit is contained in:
parent
ebd3fb3fbf
commit
70cf21cf57
4 changed files with 85 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue