Files
CalamityModPublic/Items/Pets/GeyserShell.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

41 lines
1.2 KiB
C#

using CalamityMod.Buffs.Pets;
using CalamityMod.Projectiles.Pets;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Pets
{
public class GeyserShell : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Geyser Shell");
Tooltip.SetDefault("Summons a little flak hermit");
}
public override void SetDefaults()
{
item.damage = 0;
item.useStyle = ItemUseStyleID.SwingThrow;
item.useAnimation = 20;
item.useTime = 20;
item.noMelee = true;
item.width = 30;
item.height = 30;
item.value = Item.sellPrice(0, 1, 50, 0);
item.shoot = ModContent.ProjectileType<FlakPet>();
item.buffType = ModContent.BuffType<FlakPetBuff>();
item.rare = 6;
item.UseSound = SoundID.Item2;
}
public override void UseStyle(Player player)
{
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
{
player.AddBuff(item.buffType, 15, true);
}
}
}
}