public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { if (type == ProjectileID.WoodenArrowFriendly) { type = mod.ProjectileType("Crystil"); } Vector2 baseVel = new Vector2(speedX, speedY); DavesUtils.CrystilExplosion(baseVel, damage, knockBack, player.whoAmI, position, type, player); return(false); }
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { DavesUtils.CrystilExplosion(projectile.velocity, projectile.damage, projectile.knockBack, projectile.owner, projectile.Center, mod.ProjectileType("CrystilShard"), Main.player[projectile.owner]); }
public override void Kill(int timeleft) { DavesUtils.CrystilExplosion(projectile.velocity, projectile.damage, projectile.knockBack, projectile.owner, projectile.Center, mod.ProjectileType("CrystilShard"), Main.player[projectile.owner]); }