![]() |
Even More Modifiers
1.0.0.0
A mod for rolling various bonus stats on items
|
Defines an item that may be modified by modifiers from mods More...
Public Member Functions | |
override GlobalItem | Clone (Item item, Item itemClone) |
Attempts to roll new modifiers Has a set chance to hit a predefined pool of modifiers More... | |
override void | Load (Item item, TagCompound tag) |
override void | ModifyTooltips (Item item, List< TooltipLine > tooltips) |
Will modify vanilla tooltips to add additional information for the affected item's modifiers More... | |
override bool | NeedsSaving (Item item) |
override void | NetReceive (Item item, BinaryReader reader) |
override void | NetSend (Item item, BinaryWriter writer) |
override TagCompound | Save (Item item) |
Static Public Member Functions | |
static List< Modifier > | GetActivePool (Item item) |
static LootModItem | GetInfo (Item item) |
Public Attributes | |
override bool | CloneNewInstances => true |
override bool | InstancePerEntity => true |
Properties | |
bool | HasRolled [get, set] |
bool | IsActivated [get, set] |
Keeps track of if the particular item was activated ('delegated') Specific usecase see CursedEffect and modifier More... | |
bool | JustTinkerModified [get, set] |
FiniteModifierPool | Modifiers [get, set] |
ModifierRarity | Rarity [get, set] |
bool | SealedModifiers [get, set] |
bool | SlottedInUI [get, set] |
Private Member Functions | |
string | GetPrefixNormString (float cpStat, float rStat, ref double num, ref Color?color) |
void | InvalidateRolls () |
Private Attributes | |
const int | SAVE_VERSION = 14 |
Defines an item that may be modified by modifiers from mods
Definition at line 21 of file LootModItem.cs.
override GlobalItem Loot.LootModItem.Clone | ( | Item | item, |
Item | itemClone | ||
) |
Attempts to roll new modifiers Has a set chance to hit a predefined pool of modifiers
Definition at line 165 of file LootModItem.cs.
References Loot.LootModItem.Clone(), Loot.LootModItem.Modifiers, and Loot.LootModItem.Rarity.
Referenced by Loot.LootModItem.Clone().
|
static |
Referenced by Loot.Caching.ModifierCachePlayer.CacheItemModifierEffects(), Loot.Modifiers.WeaponModifiers.CursedEffect.CurseHolding(), Loot.RollingStrategies.SealingRollingStrategy.PreRoll(), Loot.Caching.ModifierCachePlayer.UpdateCheatSheetCache(), Loot.Caching.ModifierCachePlayer.UpdateEquipsCache(), Loot.Caching.ModifierCachePlayer.UpdateHeldItemCache(), Loot.Caching.ModifierCachePlayer.UpdateMouseItemCache(), and Loot.Caching.ModifierCachePlayer.UpdateVanityCache().
|
static |
Referenced by Loot.Caching.ModifierCachePlayer.AddAttachItem(), Loot.Caching.ModifierCachePlayer.AddDetachItem(), Loot.Modifiers.WeaponModifiers.CursedEffect.CurseHolding(), Loot.Cubes.PoorCube.GetRollingStrategy(), Loot.Api.Strategy.RollingStrategy.InitFields(), Loot.ModSupport.WingSlotSupport.WingSlotSupportGlobalItem.ModifyTooltips(), Loot.RollingStrategies.SealingRollingStrategy.PlaySoundEffect(), Loot.RollingStrategies.SealingRollingStrategy.PostRoll(), and Loot.LootItemModifier.UpdateModifiers().
|
private |
Definition at line 309 of file LootModItem.cs.
Referenced by Loot.LootModItem.ModifyTooltips().
|
private |
Definition at line 47 of file LootModItem.cs.
References Loot.LootModItem.Modifiers, and Loot.LootModItem.Rarity.
Referenced by Loot.LootModItem.Load().
override void Loot.LootModItem.Load | ( | Item | item, |
TagCompound | tag | ||
) |
Definition at line 174 of file LootModItem.cs.
References Loot.Api.Core.FiniteModifierPool.Apply(), Loot.LootModItem.HasRolled, Loot.LootModItem.InvalidateRolls(), Loot.Api.Core.ModifierRarity.Load(), Loot.Api.Core.ModifierPool.Load(), Loot.Api.Core.FiniteModifierPool.Modifiers, Loot.LootModItem.Modifiers, Loot.LootModItem.Rarity, Loot.LootModItem.SealedModifiers, and Loot.Api.Graphics.GraphicsGlobalItem.UpdateGraphicsEntities().
override void Loot.LootModItem.ModifyTooltips | ( | Item | item, |
List< TooltipLine > | tooltips | ||
) |
Will modify vanilla tooltips to add additional information for the affected item's modifiers
Definition at line 352 of file LootModItem.cs.
References Loot.Api.Core.ModifierRarity.Color, Loot.Hacks.CheatedItemHackGlobalItem.GetInfo(), Loot.LootModItem.GetPrefixNormString(), Loot.Api.Core.ModifierRarity.ItemPrefix, Loot.Api.Core.ModifierRarity.ItemSuffix, Loot.LootModItem.Modifiers, Loot.Api.Core.ModifierRarity.OverrideNameColor, Loot.LootModItem.Rarity, Loot.LootModItem.SealedModifiers, and Loot.Hacks.CheatedItemHackGlobalItem.ShouldBeIgnored().
override bool Loot.LootModItem.NeedsSaving | ( | Item | item | ) |
override void Loot.LootModItem.NetReceive | ( | Item | item, |
BinaryReader | reader | ||
) |
Definition at line 218 of file LootModItem.cs.
References Loot.LootModItem.HasRolled, Loot.LootModItem.JustTinkerModified, Loot.Api.Core.FiniteModifierPool.Modifiers, Loot.LootModItem.Modifiers, Loot.Api.Core.ModifierRarity.NetReceive(), Loot.Api.Core.ModifierPool.NetReceive(), Loot.LootModItem.Rarity, and Loot.LootModItem.SealedModifiers.
override void Loot.LootModItem.NetSend | ( | Item | item, |
BinaryWriter | writer | ||
) |
Definition at line 235 of file LootModItem.cs.
References Loot.LootModItem.HasRolled, Loot.LootModItem.JustTinkerModified, Loot.LootModItem.Modifiers, Loot.Api.Core.ModifierPool.NetSend(), Loot.LootModItem.Rarity, and Loot.LootModItem.SealedModifiers.
override TagCompound Loot.LootModItem.Save | ( | Item | item | ) |
Definition at line 200 of file LootModItem.cs.
References Loot.LootModItem.HasRolled, Loot.LootModItem.Modifiers, Loot.LootModItem.NeedsSaving(), Loot.LootModItem.Rarity, and Loot.LootModItem.SealedModifiers.
override bool Loot.LootModItem.CloneNewInstances => true |
Definition at line 29 of file LootModItem.cs.
override bool Loot.LootModItem.InstancePerEntity => true |
Definition at line 28 of file LootModItem.cs.
|
private |
Definition at line 23 of file LootModItem.cs.
|
getset |
Definition at line 34 of file LootModItem.cs.
Referenced by Loot.LootModItem.Load(), Loot.LootModItem.NetReceive(), Loot.LootModItem.NetSend(), and Loot.LootModItem.Save().
|
getset |
Keeps track of if the particular item was activated ('delegated') Specific usecase see CursedEffect and modifier
Definition at line 45 of file LootModItem.cs.
Referenced by Loot.Caching.ModifierCachePlayer.AddAttachItem(), Loot.Caching.ModifierCachePlayer.AddDetachItem(), and Loot.Modifiers.WeaponModifiers.CursedEffect.CurseHolding().
|
getset |
Definition at line 38 of file LootModItem.cs.
Referenced by Loot.LootModItem.NetReceive(), and Loot.LootModItem.NetSend().
|
getset |
Definition at line 32 of file LootModItem.cs.
Referenced by Loot.LootModItem.Clone(), Loot.LootModItem.InvalidateRolls(), Loot.LootModItem.Load(), Loot.LootModItem.ModifyTooltips(), Loot.LootModItem.NetReceive(), Loot.LootModItem.NetSend(), Loot.LootModItem.Save(), and Loot.LootItemModifier.UpdateModifiers().
|
getset |
Definition at line 31 of file LootModItem.cs.
Referenced by Loot.LootModItem.Clone(), Loot.Cubes.PoorCube.GetRollingStrategy(), Loot.LootModItem.InvalidateRolls(), Loot.LootModItem.Load(), Loot.LootModItem.ModifyTooltips(), Loot.LootModItem.NetReceive(), Loot.LootModItem.NetSend(), and Loot.LootModItem.Save().
|
getset |
Definition at line 35 of file LootModItem.cs.
Referenced by Loot.LootModItem.Load(), Loot.LootModItem.ModifyTooltips(), Loot.LootModItem.NetReceive(), Loot.LootModItem.NetSend(), Loot.RollingStrategies.SealingRollingStrategy.PlaySoundEffect(), Loot.RollingStrategies.SealingRollingStrategy.PostRoll(), and Loot.LootModItem.Save().
|
getset |
Definition at line 39 of file LootModItem.cs.
Referenced by Loot.ModSupport.WingSlotSupport.WingSlotSupportGlobalItem.ModifyTooltips().