Files
CalamityModPublic/Items/Weapons/Rogue/BallisticPoisonBomb.cs
T
CongratsIsTrash 9ccffca74f 1 - Ballistic Poison Bomb and Apoctolith balancing, based on Talli's testing
2 - Changed Ballistic Poison Bomb's stealth strike
3 - Reverted the buff to free Golem Head's health because it honestly didn't need it. This is a conclusion I've reached over testing a bunch of weapons at this tier, so it was not done hastily.
4 - Moved Chlorophyte Bullet dust IL edit (grrrrr Altix)
2024-03-11 21:29:07 -04:00

54 lines
1.9 KiB
C#

using System;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
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 BallisticPoisonBomb : RogueWeapon
{
public override void SetDefaults()
{
Item.width = 30;
Item.height = 38;
Item.damage = 72;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = Item.useTime = 26;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 6.5f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.shoot = ModContent.ProjectileType<BallisticPoisonBombProj>();
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)
{
int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<SeafoamBomb>().
AddIngredient<SulphurousSand>(10).
AddIngredient<Voidstone>(10).
AddIngredient<DepthCells>(20).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}