- Counter Scarf no longer gives True Melee damage - Counter and Evasion scarf no longer mutually exclusive equips - Deep Diver dash delay no longer hardcoded (technically buff of 23 -> 22 cooldown frames with truncation) - Amalgam no longer gives 10% damage - Evolution now fires homing Mirror Shards instead of direct projectile reflection. This should make it less janky and more consistent. Also needed a huge damage buff.
64 lines
2.2 KiB
C#
64 lines
2.2 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class TheAmalgam : ModItem, ILocalizedModType, IHoldShiftTooltipItem
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
|
|
public static int NimbusDamage => CalamityUtils.ScaleWithDifficulty(200);
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6));
|
|
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 34;
|
|
Item.height = 34;
|
|
Item.accessory = true;
|
|
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
|
|
Item.rare = RarityType<CosmicPurple>();
|
|
Item.expert = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.rBrain = true; // Handles shaderain cloud spawning on hit
|
|
modPlayer.amalgam = true;
|
|
player.brainOfConfusionItem = Item;
|
|
modPlayer.HeatDebuffMultiplier += 2f;
|
|
modPlayer.ColdDebuffMultiplier += 2f;
|
|
modPlayer.SicknessDebuffMultiplier += 2f;
|
|
modPlayer.WaterDebuffMultiplier += 2f;
|
|
modPlayer.ElectricDebuffMultiplier += 2f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<AmalgamatedBrain>().
|
|
AddIngredient<AscendantSpiritEssence>(4).
|
|
AddIngredient(ItemID.LunarBar, 10).
|
|
AddIngredient(ItemID.FragmentSolar, 10).
|
|
AddIngredient<PlagueCellCanister>(15).
|
|
AddIngredient<DepthCells>(15).
|
|
AddIngredient<EffulgentFeather>(8).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|