Files
CalamityModPublic/Items/Weapons/Rogue/LeadTomahawk.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

64 lines
2.0 KiB
C#

using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class LeadTomahawk : RogueWeapon
{
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetDefaults()
{
Item.width = 40;
Item.height = 36;
Item.damage = 14;
Item.noMelee = true;
Item.consumable = true;
Item.noUseGraphic = true;
Item.useAnimation = 15;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 15;
Item.knockBack = 1f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = false;
Item.maxStack = 9999;
Item.value = Item.buyPrice(0, 0, 1, 0);
Item.rare = ItemRarityID.White;
Item.shoot = ModContent.ProjectileType<LeadTomahawkProj>();
Item.shootSpeed = 12f;
Item.DamageType = RogueDamageClass.Instance;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.Calamity().StealthStrikeAvailable())
{
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 1f);
if (p.WithinBounds(Main.maxProjectiles))
{
Main.projectile[p].Calamity().stealthStrike = true;
Main.projectile[p].penetrate = 7;
}
return false;
}
return true;
}
public override void AddRecipes()
{
CreateRecipe(100).
AddIngredient(ItemID.LeadBar).
AddIngredient(ItemID.Wood).
AddTile(TileID.Anvils).
Register();
}
}
}