35 lines
963 B
C#
35 lines
963 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using System;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using CalamityMod.Items.Fishing.FishingRods;
|
|
namespace CalamityMod.Projectiles.Typeless
|
|
{
|
|
public class WulfrumBobber : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Wulfrum Bobber");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
//projectile.CloneDefaults(360); //Wooden Bobber
|
|
projectile.width = 14;
|
|
projectile.height = 14;
|
|
projectile.aiStyle = 61;
|
|
projectile.bobber = true;
|
|
projectile.penetrate = -1;
|
|
}
|
|
|
|
public override bool PreDrawExtras(SpriteBatch spriteBatch)
|
|
{
|
|
Player player = Main.player[projectile.owner];
|
|
CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType<WulfrumRod>(), new Color(200, 200, 200, 100));
|
|
return false;
|
|
}
|
|
}
|
|
}
|