8 namespace Loot.Modifiers.EquipModifiers.Offensive
26 public void ModifyHitNPC(Item item, NPC target, ref
int damage, ref
float knockback, ref
bool crit)
30 CritBonus(ref damage);
36 private void ModifyHitPvp(Item item, Player target, ref
int damage, ref
bool crit)
40 CritBonus(ref damage);
46 damage = (int) Math.Ceiling(damage * Multiplier);
55 return base.GetTooltip()
56 .WithPositive($
"+{Properties.RoundedPower}% crit multiplier");
61 return base.GetModifierProperties(item)
63 .WithMaxMagnitude(15f);
void ModifyHitPvp(Item item, Player target, ref int damage, ref bool crit)
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)
override void ResetEffects()
Automatically called when the ModPlayer does its ResetEffects Also automatically called when the dele...
void ModifyHitNPC(Item item, NPC target, ref int damage, ref float knockback, ref bool crit)
Defines the properties of a modifier
override void UpdateEquip(Item item, Player player)
override ModifierTooltipLine.ModifierTooltipBuilder GetTooltip()
Holds player-entity data and handles it
override void OnInitialize()
Called when the ModPlayer initializes the effect
override ModifierProperties.ModifierPropertiesBuilder GetModifierProperties(Item item)
void CritBonus(ref int damage)