muffin v7.4

This commit is contained in:
alydev 2025-12-18 00:49:57 +10:00
parent 8a7847ff37
commit a4175abacd
54 changed files with 95984 additions and 123967 deletions

View file

@ -161,7 +161,6 @@ internal static class EquipItem
{
return new List<ushort>();
}
Span<ushort> span;
switch (item.Value.EquipSlotCategory.RowId)
{
case 1u:
@ -179,9 +178,9 @@ internal static class EquipItem
int index = 1;
List<ushort> list4 = new List<ushort>(index);
CollectionsMarshal.SetCount(list4, index);
span = CollectionsMarshal.AsSpan(list4);
Span<ushort> span4 = CollectionsMarshal.AsSpan(list4);
int num = 0;
span[num] = (ushort)(item.Value.EquipSlotCategory.RowId - 1);
span4[num] = (ushort)(item.Value.EquipSlotCategory.RowId - 1);
return list4;
}
case 12u:
@ -189,11 +188,11 @@ internal static class EquipItem
int num = 2;
List<ushort> list3 = new List<ushort>(num);
CollectionsMarshal.SetCount(list3, num);
span = CollectionsMarshal.AsSpan(list3);
Span<ushort> span3 = CollectionsMarshal.AsSpan(list3);
int index = 0;
span[index] = 11;
span3[index] = 11;
index++;
span[index] = 12;
span3[index] = 12;
return list3;
}
case 13u:
@ -201,9 +200,9 @@ internal static class EquipItem
int index = 1;
List<ushort> list2 = new List<ushort>(index);
CollectionsMarshal.SetCount(list2, index);
span = CollectionsMarshal.AsSpan(list2);
Span<ushort> span2 = CollectionsMarshal.AsSpan(list2);
int num = 0;
span[num] = 0;
span2[num] = 0;
return list2;
}
case 17u:
@ -211,7 +210,7 @@ internal static class EquipItem
int num = 1;
List<ushort> list = new List<ushort>(num);
CollectionsMarshal.SetCount(list, num);
span = CollectionsMarshal.AsSpan(list);
Span<ushort> span = CollectionsMarshal.AsSpan(list);
int index = 0;
span[index] = 13;
return list;