8 namespace Loot.Modifiers.EquipModifiers.Defensive
21 private bool TryDodge(
bool pvp,
bool quiet, ref
int damage, ref
int hitDirection, ref
bool crit, ref
bool customDamage, ref
bool playSound, ref
bool genGore, ref PlayerDeathReason damageSource)
23 if (Main.rand.NextFloat() < DodgeChance)
38 return base.GetTooltip()
39 .WithPositive($
"+{Properties.RoundedPower}% dodge chance");
44 return base.GetModifierProperties(item)
46 .WithRollChance(0.333f);
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...
override ModifierProperties.ModifierPropertiesBuilder GetModifierProperties(Item item)
Defines a modifier that can roll on an equip item (armor or accessory) These modifiers will have 60% ...
override void ResetEffects()
Automatically called when the ModPlayer does its ResetEffects Also automatically called when the dele...
DelegationPrioritization
Specify when you want your delegation to happen in the chain
static ModifierDelegatorPlayer GetPlayer(Player player)
override void UpdateEquip(Item item, Player player)
Defines the properties of a modifier
bool TryDodge(bool pvp, bool quiet, ref int damage, ref int hitDirection, ref bool crit, ref bool customDamage, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource)
override ModifierTooltipLine.ModifierTooltipBuilder GetTooltip()
Holds player-entity data and handles it