Files
CalamityModPublic/Items/Weapons/Summon/ShellfishStaff.cs
T
CongratsIsTrash fcbd9d5d96 1 - Standardized all Calamity sentries to 30 UT
2 - Standardized all Calamity pre-HM and HM minions to 36 UT
2025-11-05 12:58:27 -05:00

45 lines
1.6 KiB
C#

using CalamityMod.Buffs.Summon;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Summon
{
public class ShellfishStaff : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Summon";
public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 2f;
public override void SetDefaults()
{
Item.width = 50;
Item.height = 50;
Item.damage = 70;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.knockBack = 2f;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.UseSound = SoundID.Item44;
Item.autoReuse = true;
Item.buffType = ModContent.BuffType<ShellfishBuff>();
Item.shoot = ModContent.ProjectileType<Shellfish>();
Item.DamageType = DamageClass.Summon;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
player.AddBuff(Item.buffType, 2);
var minion = Projectile.NewProjectileDirect(source, player.ClampedMouseWorld(), Vector2.Zero, type, damage, knockback, player.whoAmI);
minion.originalDamage = Item.damage;
return false;
}
}
}