![]() |
Even More Modifiers
1.0.0.0
A mod for rolling various bonus stats on items
|
Caches the item held and items equipped by players. When equips and held items change, their respective modifiers' effects are automatically called to detach and attach their delegations. More...
Public Member Functions | |
override void | Initialize () |
override void | PostUpdate () |
Private Member Functions | |
void | AddAttachItem (Item item, Modifier modifier) |
void | AddDetachItem (Item item, Modifier modifier) |
void | CacheItemModifierEffects (Item item) |
void | CacheModifierEffects () |
IEnumerable< ModifierEffect > | GetModifierEffectsForDelegations (IEnumerable<(Item item, Modifier modifier)> list, ModifierDelegatorPlayer modDelegatorPlayer, Func< ModifierEffect, bool > conditionFunc) |
This method will return a list of ModifierEffects based on Modifiers passed to it More... | |
IEnumerable<(MethodInfo methodInfo, ModifierEffect effect)> | OrderDelegationList (IEnumerable<(Item item, Modifier modifier)> list, ModifierDelegatorPlayer modDelegatorPlayer) |
This method orders delegation entries following the rules of DelegationPrioritizationAttribute which orders by Early/Late prioritization and a level ranging from 0-999 which indicates how much that prioritization should be enforced. More... | |
void | UpdateAttachments () |
This method handles updating all delegations First, it will perform 'manual' detachments calling ModifierEffect.DetachDelegations(ModifierDelegatorPlayer) then it will perform 'manual' attachments calling ModifierEffect.AttachDelegations(ModifierDelegatorPlayer) These will unbind/bind ModifierEffect.ResetEffects to ModifierDelegatorPlayer.OnResetEffects and set ModifierEffect.IsBeingDelegated to false or true. More... | |
void | UpdateCheatSheetCache () |
void | UpdateEquipsCache () |
void | UpdateHeldItemCache () |
bool | UpdateMouseItemCache () |
void | UpdateVanityCache () |
Static Private Member Functions | |
static bool | IsMouseUsable (Item item) |
Private Attributes | |
List<(Item, Modifier)> | _attachList |
List<(Item, Modifier)> | _detachList |
bool | _forceEquipUpdate |
List< Type > | _modifierEffects |
Item[] | _oldCheatSheetEquips |
Item[] | _oldEquips |
Item | _oldMouseItem |
int | _oldSelectedItem |
Item[] | _oldVanityEquips |
Caches the item held and items equipped by players. When equips and held items change, their respective modifiers' effects are automatically called to detach and attach their delegations.
Definition at line 7 of file ModifierCacheCheatSheet.cs.
|
private |
Definition at line 230 of file ModifierCachePlayer.cs.
References Loot.LootModItem.GetInfo(), and Loot.LootModItem.IsActivated.
|
private |
Definition at line 224 of file ModifierCachePlayer.cs.
References Loot.LootModItem.GetInfo(), and Loot.LootModItem.IsActivated.
|
private |
Definition at line 274 of file ModifierCachePlayer.cs.
References Loot.LootModItem.GetActivePool(), Loot.Api.Delegators.ModifierDelegatorPlayer.GetEffect(), and Loot.Api.Delegators.ModifierDelegatorPlayer.GetPlayer().
|
private |
Definition at line 236 of file ModifierCachePlayer.cs.
References Loot.Hacks.CheatedItemHackGlobalItem.GetInfo(), and Loot.Hacks.CheatedItemHackGlobalItem.IsCheated.
|
private |
This method will return a list of ModifierEffects based on Modifiers passed to it
Definition at line 61 of file ModifierCachePlayer.cs.
override void Loot.Caching.ModifierCachePlayer.Initialize | ( | ) |
Definition at line 44 of file ModifierCachePlayer.cs.
|
staticprivate |
|
private |
This method orders delegation entries following the rules of DelegationPrioritizationAttribute which orders by Early/Late prioritization and a level ranging from 0-999 which indicates how much that prioritization should be enforced.
Definition at line 146 of file ModifierCachePlayer.cs.
override void Loot.Caching.ModifierCachePlayer.PostUpdate | ( | ) |
Definition at line 184 of file ModifierCachePlayer.cs.
|
private |
This method handles updating all delegations First, it will perform 'manual' detachments calling ModifierEffect.DetachDelegations(ModifierDelegatorPlayer) then it will perform 'manual' attachments calling ModifierEffect.AttachDelegations(ModifierDelegatorPlayer) These will unbind/bind ModifierEffect.ResetEffects to ModifierDelegatorPlayer.OnResetEffects and set ModifierEffect.IsBeingDelegated to false or true.
After this, the automatic detachments/attachments are done which will bind any methods to whichever method noted in their AutoDelegation attribute.
Definition at line 90 of file ModifierCachePlayer.cs.
References Loot.Api.Attributes.AutoDelegation.Attach(), Loot.Api.Attributes.AutoDelegation.Detach(), and Loot.Api.Delegators.ModifierDelegatorPlayer.GetPlayer().
|
private |
Definition at line 11 of file ModifierCacheCheatSheet.cs.
References Loot.LootModItem.GetActivePool().
|
private |
Definition at line 105 of file ModifierCacheVanilla.cs.
References Loot.LootModItem.GetActivePool().
|
private |
Definition at line 45 of file ModifierCacheVanilla.cs.
References Loot.LootModItem.GetActivePool().
|
private |
Definition at line 75 of file ModifierCacheVanilla.cs.
References Loot.LootModItem.GetActivePool().
|
private |
Definition at line 9 of file ModifierCacheVanilla.cs.
References Loot.LootModItem.GetActivePool(), Loot.Hacks.CheatedItemHackGlobalItem.GetInfo(), and Loot.Hacks.CheatedItemHackGlobalItem.IsCheated.
|
private |
Definition at line 42 of file ModifierCachePlayer.cs.
|
private |
Definition at line 41 of file ModifierCachePlayer.cs.
|
private |
Definition at line 38 of file ModifierCachePlayer.cs.
|
private |
Definition at line 40 of file ModifierCachePlayer.cs.
|
private |
Definition at line 39 of file ModifierCachePlayer.cs.
|
private |
Definition at line 36 of file ModifierCachePlayer.cs.
|
private |
Definition at line 35 of file ModifierCachePlayer.cs.
|
private |
Definition at line 34 of file ModifierCachePlayer.cs.
|
private |
Definition at line 37 of file ModifierCachePlayer.cs.