mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 21:47:44 +01:00
Maybe fix weapon behavior with multiple restricted designs with identical weapon types.
This commit is contained in:
parent
71d6a658d6
commit
3d421881f6
12 changed files with 104 additions and 38 deletions
|
|
@ -298,7 +298,7 @@ public class StateEditor(
|
|||
}
|
||||
|
||||
var currentType = state.BaseData.Item(weaponSlot).Type;
|
||||
if (mergedDesign.Weapons.TryGetValue(currentType, out var weapon))
|
||||
if (mergedDesign.Weapons.TryGet(currentType, state.LastJob, out var weapon))
|
||||
{
|
||||
var source = settings.UseSingleSource ? settings.Source :
|
||||
weapon.Item2 is StateSource.Game ? StateSource.Game : settings.Source;
|
||||
|
|
@ -311,7 +311,7 @@ public class StateEditor(
|
|||
if (settings.FromJobChange)
|
||||
jobChange.Set(state, mergedDesign.Weapons.Values.Select(m =>
|
||||
(m.Item1, settings.UseSingleSource ? settings.Source :
|
||||
m.Item2 is StateSource.Game ? StateSource.Game : settings.Source)));
|
||||
m.Item2 is StateSource.Game ? StateSource.Game : settings.Source, m.Item3)));
|
||||
|
||||
foreach (var meta in MetaExtensions.AllRelevant.Where(mergedDesign.Design.DoApplyMeta))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue