mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 05:27:43 +01:00
Add working links.
This commit is contained in:
parent
282d6df165
commit
5992b86e4f
9 changed files with 31 additions and 11 deletions
|
|
@ -15,7 +15,8 @@ public class StateEditor(
|
|||
StateChanged stateChanged,
|
||||
JobChangeState jobChange,
|
||||
Configuration config,
|
||||
ItemManager items) : IDesignEditor
|
||||
ItemManager items,
|
||||
DesignMerger merger) : IDesignEditor
|
||||
{
|
||||
protected readonly InternalStateEditor Editor = editor;
|
||||
protected readonly StateApplier Applier = applier;
|
||||
|
|
@ -293,12 +294,19 @@ public class StateEditor(
|
|||
}
|
||||
|
||||
public void ApplyDesign(object data, DesignBase design, ApplySettings settings)
|
||||
=> ApplyDesign(data, new MergedDesign(design), settings with
|
||||
{
|
||||
var merged = settings.MergeLinks && design is Design d
|
||||
? merger.Merge(d.AllLinks, ((ActorState)data).ModelData, false, false)
|
||||
: new MergedDesign(design);
|
||||
|
||||
ApplyDesign(data, merged, settings with
|
||||
{
|
||||
FromJobChange = false,
|
||||
RespectManual = false,
|
||||
UseSingleSource = true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/// <summary> Apply offhand item and potentially gauntlets if configured. </summary>
|
||||
private void ApplyMainhandPeriphery(ActorState state, EquipItem? newMainhand, ApplySettings settings)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue