mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Change Emperor Code functionality.
This commit is contained in:
parent
fa4a426b79
commit
4b7eba793f
1 changed files with 11 additions and 11 deletions
|
|
@ -72,20 +72,20 @@ public unsafe class FunModule
|
||||||
if (!_codes.EnabledEmperor)
|
if (!_codes.EnabledEmperor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (armors.Length == 1)
|
void SetItem(EquipSlot slot2, ref CharacterArmor armor)
|
||||||
{
|
{
|
||||||
ref var piece = ref armors[0];
|
var list = _items.ItemService.AwaitedService[slot2.ToEquipType()];
|
||||||
piece.Variant = 1;
|
var rng = _rng.Next(0, list.Count - 1);
|
||||||
piece.Set = (SetId)(slot.IsAccessory() ? 53 : 279);
|
var item = list[rng];
|
||||||
return;
|
armor.Set = item.ModelId;
|
||||||
|
armor.Variant = item.Variant;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < armors.Length; ++i)
|
if (armors.Length == 1)
|
||||||
{
|
SetItem(slot, ref armors[0]);
|
||||||
ref var piece = ref armors[i];
|
else
|
||||||
piece.Variant = 1;
|
for (var i = 0u; i < armors.Length; ++i)
|
||||||
piece.Set = (SetId)(i < 5 ? 279 : 53);
|
SetItem(i.ToEquipSlot(), ref armors[(int)i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ApplyOops(ref Customize customize)
|
public void ApplyOops(ref Customize customize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue