public override void ModifyHitNPC(Item item, Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
        {
            if (AccessoryProperties.SpawmBees && CreateProjectiles.SpawnProjectile(Main.LocalPlayer.HeldItem.useTime))
            {
                if (AccessoryProperties.StrongBees && BuffedAccessories.Ran.Next(100) < 50)
                {
                    SpawnProjectiles.CreateBees(target, damage, true, player.GetSource_ItemUse(item));
                }
                else
                {
                    SpawnProjectiles.CreateBees(target, damage, false, player.GetSource_ItemUse(item));
                }
            }

            if (AccessoryProperties.SpawnStars && CreateProjectiles.SpawnProjectile(Main.LocalPlayer.HeldItem.useTime))
            {
                SpawnProjectiles.CreateStars(target, damage, player.GetSource_ItemUse(item));
            }
        }
Esempio n. 2
0
 public override void ModifyShootStats(Item item, Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
 {
     if (AccessoryProperties.RangedDupe && item.DamageType == DamageClass.Ranged && CreateProjectiles.SpawnProjectile(item.useTime))
     {
         SpawnProjectiles.CreateDuplicate(type, position, velocity.X, velocity.Y, damage, knockback, 1, player.GetSource_ItemUse(item));
     }
 }