mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-25 06:01:48 +01:00
Remove BonusItem and replace with normal EquipItems everywhere.
This commit is contained in:
parent
415ac63767
commit
9d99d936aa
25 changed files with 112 additions and 118 deletions
|
|
@ -85,7 +85,7 @@ public class ItemsApi(ApiHelpers helpers, ItemManager itemManager, StateManager
|
|||
return ApiHelpers.Return(GlamourerApiEc.InvalidKey, args);
|
||||
|
||||
var settings = new ApplySettings(Source: flags.HasFlag(ApplyFlag.Once) ? StateSource.IpcManual : StateSource.IpcFixed, Key: key);
|
||||
stateManager.ChangeBonusItem(state, item.Slot, item, settings);
|
||||
stateManager.ChangeBonusItem(state, item.Type.ToBonus(), item, settings);
|
||||
ApiHelpers.Lock(state, key, flags);
|
||||
return GlamourerApiEc.Success;
|
||||
}
|
||||
|
|
@ -111,7 +111,7 @@ public class ItemsApi(ApiHelpers helpers, ItemManager itemManager, StateManager
|
|||
continue;
|
||||
|
||||
anyUnlocked = true;
|
||||
stateManager.ChangeBonusItem(state, item.Slot, item, settings);
|
||||
stateManager.ChangeBonusItem(state, item.Type.ToBonus(), item, settings);
|
||||
ApiHelpers.Lock(state, key, flags);
|
||||
}
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ public class ItemsApi(ApiHelpers helpers, ItemManager itemManager, StateManager
|
|||
return item.Valid;
|
||||
}
|
||||
|
||||
private bool ResolveBonusItem(ApiBonusSlot apiSlot, ulong itemId, out BonusItem item)
|
||||
private bool ResolveBonusItem(ApiBonusSlot apiSlot, ulong itemId, out EquipItem item)
|
||||
{
|
||||
var slot = apiSlot switch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue