Exemplo n.º 1
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
 {
     if (accent.onHit != null)
     {
         accent.onHit(player, target, this, damage, crit);
     }
 }
Exemplo n.º 2
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     try
     {
         Player owner = Main.player[projectile.owner];
         if (accent.onHit != null)
         {
             accent.onHit(owner, target, (ProceduralSword)owner.inventory[owner.selectedItem].modItem, damage, crit);
         }
     }
     catch (SystemException e)
     {
         Main.NewText(e.ToString());
         ErrorLogger.Log(e.ToString());
     }
 }