mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-01-03 14:23:43 +01:00
Do not apply Nothing-shield for swords periphery.
This commit is contained in:
parent
1cc7c2f0cd
commit
5bca4b9118
2 changed files with 5 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ public class DesignEditor(
|
|||
|
||||
newOff = o;
|
||||
}
|
||||
else if (!_forceFullItemOff && Config.ChangeEntireItem)
|
||||
else if (!_forceFullItemOff && Config.ChangeEntireItem && newMain.Type is not FullEquipType.Sword) // Skip applying shields.
|
||||
{
|
||||
var defaultOffhand = Items.GetDefaultOffhand(newMain);
|
||||
if (Items.IsOffhandValid(newMain, defaultOffhand.ItemId, out var o))
|
||||
|
|
|
|||
|
|
@ -456,6 +456,10 @@ public class StateEditor(
|
|||
return;
|
||||
|
||||
var mh = newMainhand ?? state.ModelData.Item(EquipSlot.MainHand);
|
||||
// Do not change Shields to nothing.
|
||||
if (mh.Type is FullEquipType.Sword)
|
||||
return;
|
||||
|
||||
var offhand = newMainhand != null ? Items.GetDefaultOffhand(mh) : state.ModelData.Item(EquipSlot.OffHand);
|
||||
var stains = newStains ?? state.ModelData.Stain(EquipSlot.MainHand);
|
||||
if (offhand.Valid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue