8 namespace Loot.Modifiers.EquipModifiers.Defensive
23 player.statDefense = (int) Math.Ceiling(player.statDefense * (1 + PercentDefBoost));
32 return base.GetTooltip()
33 .WithPositive($
"+{Properties.RoundedPower}% defense");
38 return base.GetModifierProperties(item)
39 .WithMaxMagnitude(10f);
ModifierEffect GetEffect(Type type)
The ModifierPropertiesBuilder implements the builder pattern for ModifierProperties It provides a str...
This attribute may be used to skip usage of AttachDelegations and DetachDelegations Which is a cumber...
A ModifierEffect signifies the effect of a modifier on a player It should house the implementation...
Defines a modifier that can roll on an equip item (armor or accessory) These modifiers will have 60% ...
DelegationPrioritization
Specify when you want your delegation to happen in the chain
static ModifierDelegatorPlayer GetPlayer(Player player)
Defines the properties of a modifier
override void UpdateEquip(Item item, Player player)
override void ResetEffects()
Automatically called when the ModPlayer does its ResetEffects Also automatically called when the dele...
override ModifierProperties.ModifierPropertiesBuilder GetModifierProperties(Item item)
Holds player-entity data and handles it
override ModifierTooltipLine.ModifierTooltipBuilder GetTooltip()