Example #1
0
 public void UpdateEquip(Item item, Player player)
 {
     foreach (var method in Hooks.Build <Affix, Action <Item, Player> >(affixes, o => o.UpdateEquip))
     {
         method(item, player);
     }
 }
Example #2
0
 public void ModifyTooltips(Item item, List <TooltipLine> tooltips)
 {
     foreach (var method in Hooks.Build <Affix, Action <Item, List <TooltipLine> > >(affixes, o => o.ModifyTooltips))
     {
         method(item, tooltips);
     }
 }
Example #3
0
 public void OnHitNPC(Item item, Player player, Projectile projectile, NPC target, int damage, float knockBack, bool crit)
 {
     foreach (var method in Hooks.Build <Affix, Action <Item, Player, Projectile, NPC, int, float, bool> >(affixes, o => o.OnHitNPC))
     {
         method(item, player, projectile, target, damage, knockBack, crit);
     }
 }
Example #4
0
        public string GetFormattedName(Item item, string oldName)
        {
            string name = oldName;

            foreach (var method in Hooks.Build <Affix, Func <Item, string, string> >(affixes, o => o.GetFormattedName))
            {
                name = method(item, name);
            }
            return(name);
        }