Files
CalamityModPublic/Items/Weapons/Melee/PerfectDark.cs
T
Xyk 279ce5d42e Added Brain Rot
Brain rot is the counterpart debuff to Burning Blood
Removed shadowflame from Hive minds clouds and replaced it with Brain Rot
Added Shadowflame to all of the Hive mind drops
Adjusted some Burning Blood durations to fit the new Brain Rot ones
Tweaked some more debuff visuals, mostly so the effects that scale with npc size don't go as mental as they did before on huge targets
2023-09-24 01:38:12 -07:00

51 lines
1.7 KiB
C#

using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class PerfectDark : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 50;
Item.damage = 24;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 25;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 25;
Item.useTurn = true;
Item.knockBack = 4.25f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.height = 50;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<DarkBall>();
Item.shootSpeed = 10f;
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<BrainRot>(), 300);
}
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
target.AddBuff(ModContent.BuffType<BrainRot>(), 300);
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.DemoniteBar, 5).
AddIngredient<RottenMatter>(15).
AddIngredient(ItemID.RottenChunk, 5).
AddTile(TileID.DemonAltar).
Register();
}
}
}