31 lines
876 B
C#
31 lines
876 B
C#
using CalamityMod.Items.Fishing.FishingRods;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Projectiles.Typeless
|
|
{
|
|
public class SlurperBobber : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Slurper Bobber");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.width = 14;
|
|
Projectile.height = 14;
|
|
Projectile.aiStyle = ProjAIStyleID.Bobber;
|
|
Projectile.bobber = true;
|
|
Projectile.penetrate = -1;
|
|
}
|
|
|
|
public override bool PreDrawExtras()
|
|
{
|
|
Lighting.AddLight(Projectile.Center, 0.25f, 0f, 0f);
|
|
return Projectile.DrawFishingLine(ModContent.ItemType<SlurperPole>(), new Color(227, 79, 79, 100));
|
|
}
|
|
}
|
|
}
|