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
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using CalamityMod.Buffs.DamageOverTime;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class CorruptFlask : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 20;
|
|
Item.height = 20;
|
|
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
|
Item.rare = ItemRarityID.Green;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.buffImmune[ModContent.BuffType<BrainRot>()] = true;
|
|
if (player.ZoneCorrupt)
|
|
{
|
|
player.statDefense += 6;
|
|
player.endurance += 0.04f;
|
|
}
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.VilePowder, 15).
|
|
AddIngredient(ItemID.RottenChunk, 10).
|
|
AddTile(TileID.Anvils).
|
|
Register();
|
|
}
|
|
}
|
|
}
|