Skip to content

Commit

Permalink
Maybe fix an issue with monk fist weapons again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jul 22, 2024
1 parent b1c1cf0 commit b2bb50b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Glamourer/State/StateListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ private void OnWeaponLoading(Actor actor, EquipSlot slot, ref CharacterWeapon we

// Fist weapon gauntlet hack.
if (slot is EquipSlot.OffHand && weapon.Variant == 0 && weapon.Weapon.Id != 0 && _lastFistOffhand.Weapon.Id != 0)
weapon = _lastFistOffhand;
{
Glamourer.Log.Excessive($"Applying stored fist weapon offhand {_lastFistOffhand}.");
weapon = _lastFistOffhand;
_lastFistOffhand = CharacterWeapon.Empty;
}

if (!actor.Identifier(_actors, out var identifier)
|| !_manager.TryGetValue(identifier, out var state))
Expand Down Expand Up @@ -372,8 +376,11 @@ private void OnWeaponLoading(Actor actor, EquipSlot slot, ref CharacterWeapon we

// Fist Weapon Offhand hack.
if (slot is EquipSlot.MainHand && weapon.Skeleton.Id is > 1600 and < 1651)
{
_lastFistOffhand = new CharacterWeapon((PrimaryId)(weapon.Skeleton.Id + 50), weapon.Weapon, weapon.Variant,
weapon.Stains);
Glamourer.Log.Excessive($"Storing fist weapon offhand {_lastFistOffhand}.");
}

_funModule.ApplyFunToWeapon(actor, ref weapon, slot);
}
Expand Down

0 comments on commit b2bb50b

Please sign in to comment.