Files
CalamityModPublic/Items/Ammo/CinderArrow.cs
T
2026-06-30 03:30:38 -05:00

47 lines
1.4 KiB
C#

using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Ammo
{
[LegacyName("NapalmArrow")]
public class CinderArrow : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Ammo";
public override void SetStaticDefaults()
{
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<BrimstoneFlames>()];
Item.ResearchUnlockCount = 99;
}
public override void SetDefaults()
{
Item.width = 22;
Item.height = 36;
Item.damage = 17;
Item.DamageType = DamageClass.Ranged;
Item.maxStack = Item.CommonMaxStack;
Item.consumable = true;
Item.knockBack = 1.5f;
Item.value = Item.sellPrice(copper: 12);
Item.rare = ItemRarityID.Pink;
Item.shoot = ModContent.ProjectileType<CinderArrowProj>();
Item.shootSpeed = 13f;
Item.ammo = AmmoID.Arrow;
}
public override void AddRecipes()
{
CreateRecipe(250).
AddIngredient(ItemID.HellfireArrow, 250).
AddIngredient<UnholyCore>().
AddTile(TileID.MythrilAnvil).
Register();
}
}
}