Files
CalamityModPublic/Items/Weapons/Melee/Nadir.cs
T
Altixal a321ece97b Material culling & recipe changes 2024
- Removed Demonic Bone Ash
- Removed Murky Paste
- Removed Trapper Bulb

Most of these are recipe ordering hell (again)
- Moved Shadowspec Bar to the top of most materials
- Moved Cosmilite Bar to the top of most materials (under SSpec)
- Moved complementary ASE type to pair below Bars
- Swap recipe order of Soul Artifacts
- Enforced certain material pairing orders
- Added missing materials for certain sets
2024-09-05 23:19:37 +07:00

60 lines
1.9 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee.Spears;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Nadir : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public static float ProjShootSpeed = 20f;
public static int FadeoutSpeed = 20;
public override void SetStaticDefaults()
{
ItemID.Sets.Spears[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 144;
Item.height = 144;
Item.noUseGraphic = true;
Item.DamageType = DamageClass.Melee;
Item.damage = 365;
Item.knockBack = 8f;
Item.useAnimation = 18;
Item.useTime = 18;
Item.autoReuse = true;
Item.noMelee = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item1;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.Calamity().donorItem = true;
Item.shoot = ModContent.ProjectileType<NadirSpear>();
Item.shootSpeed = 12f; // This isn't the projectile's speed, it's the spear's.
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<VanishingPoint>().
AddIngredient<AuricBar>(5).
AddIngredient<DarksunFragment>(8).
AddIngredient<TwistingNether>(5).
AddTile<CosmicAnvil>().
Register();
}
}
}