33 lines
942 B
C#
33 lines
942 B
C#
using CalamityMod.Projectiles.Ranged;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Ammo
|
|
{
|
|
public class IcicleArrow : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Ammo";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 99;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.damage = 15;
|
|
Item.DamageType = DamageClass.Ranged;
|
|
Item.consumable = true;
|
|
Item.width = 18;
|
|
Item.height = 50;
|
|
Item.knockBack = 2.5f;
|
|
Item.value = Item.buyPrice(0, 0, 0, 80);
|
|
Item.rare = ItemRarityID.LightPurple;
|
|
Item.shoot = ModContent.ProjectileType<IcicleArrowProj>();
|
|
Item.shootSpeed = 1.0f;
|
|
Item.ammo = AmmoID.Arrow;
|
|
Item.maxStack = 9999;
|
|
}
|
|
}
|
|
}
|