Fix a bunch of shit and update.

This commit is contained in:
Ottermandias 2021-08-02 16:13:48 +02:00
parent 2d5e88745f
commit fbb41636df
9 changed files with 708 additions and 86 deletions

View file

@ -106,7 +106,7 @@ namespace Glamourer.Customization
{
var row = _customizeSheet.GetRow(value);
return row == null
? new Customization(id, (byte) index, value, 0)
? new Customization(id, (byte) (index + 1), value, 0)
: new Customization(id, row.FeatureID, row.Icon, (ushort) row.RowId);
}
@ -192,8 +192,6 @@ namespace Glamourer.Customization
if (set.Faces.Count > 0)
set.SetAvailable(CustomizationId.Face);
var count = race.ToRace() == Race.Hrothgar ? set.HairStyles.Count : set.Faces.Count;
var featureDict = new List<IReadOnlyList<Customization>>(count);
for (var i = 0; i < count; ++i)