Files
CalamityModPublic/Items/Tools/MarniteObliterator.cs
T
Ozzatron 092824bea5 1 - Fixed armor penetration being applied twice.
2 - Changed the way Filthy/Bloody Glove and Nanotech apply armor pen. Hopefully it works.
3 - Removed defDamage because vanilla provides originalDamage. Mech boss projectiles may no longer be properly nerfed.
4 - Added frame 1 hacks to CalamityGlobalProjectile because defDamage was being used for that.
5 - Fixed originalDamage and armor pen in a few places.
6 - Added armor pen tooltips to all weapons I could find which had built-in armor pen (mostly Iban's new earlygame stuff).
2022-09-06 12:14:14 -04:00

63 lines
2.0 KiB
C#

using CalamityMod.Projectiles.Melee;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
using Terraria.Audio;
namespace CalamityMod.Items.Tools
{
public class MarniteObliterator : ModItem
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/MarniteObliteratorUse") { PitchVariance = 0.3f };
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Marnite Obliterator");
Tooltip.SetDefault("Uses a diamond focus to project a long-range digging beam of light\n" + "Ignores 5 points of enemy Defense");
}
public override void SetDefaults()
{
Item.damage = 7;
Item.ArmorPenetration = 5;
Item.knockBack = 0f;
Item.useTime = 6;
Item.useAnimation = 25;
Item.pick = 50;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.width = 36;
Item.height = 18;
Item.channel = true;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item23;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<MarniteObliteratorProj>();
Item.shootSpeed = 40f;
Item.tileBoost = 7;
}
public override void HoldItem(Player player)
{
player.Calamity().mouseWorldListener = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Diamond).
AddRecipeGroup("AnyGoldBar", 3).
AddIngredient(ItemID.Granite, 5).
AddIngredient(ItemID.Marble, 5).
AddTile(TileID.Anvils).
Register();
}
}
}