mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Change Eqp hook to not need eqp files anymore.
This commit is contained in:
parent
e33512cf7f
commit
ad0c64d4ac
6 changed files with 19 additions and 23 deletions
|
|
@ -19,11 +19,10 @@ public unsafe class EqpHook : FastHook<EqpHook.Delegate>
|
|||
|
||||
private void Detour(CharacterUtility* utility, EqpEntry* flags, CharacterArmor* armor)
|
||||
{
|
||||
if (_metaState.EqpCollection.Valid)
|
||||
if (_metaState.EqpCollection is { Valid: true, ModCollection.MetaCache: { } cache })
|
||||
{
|
||||
using var eqp = _metaState.ResolveEqpData(_metaState.EqpCollection.ModCollection);
|
||||
Task.Result.Original(utility, flags, armor);
|
||||
*flags = _metaState.EqpCollection.ModCollection.ApplyGlobalEqp(*flags, armor);
|
||||
*flags = cache.Eqp.GetValues(armor);
|
||||
*flags = cache.GlobalEqp.Apply(*flags, armor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue