2 - Amalgam now inflicts Acid Venom instead of Brimstone Flames and Plague and Astral Infection instead of God Slayer Inferno. 3 - Elemental Gauntlet now only inflicts Hellfire. 4 - Frosty Flare now inflicts Frostburn on all hits instead of just melee. 5 - Corrosive Spine now inflicts Acid Venom instead of Poisoned. 6 - Void of Extinction now inflicts Brimstone Flames on all hits instead of Hellfire on melee hits. 7 - Necklace of Vexation now inflicts Acid Venom instead of Cursed Inferno and Venom while wearing Reaver Armor. 8 - The Camper no longer inflicts On Fire! 9 - Increased Alicorn mount run speed to 90 mph, gave it infinite flight and increased vertical speed to 70 mph. 10 - Increased Gaze of Crysthamyr mount horizontal flight acceleration by 70%, decreased run speed to 50 mph and made holding W while flying up greatly boost vertical acceleration. 11 - Gaze of Crysthamyr now requires 10 Souls of Night to craft instead of 100. 12 - Dragon Scales infernadoes and fireballs now inflict Dragonfire. 13 - Abyssal Mirror projectiles now inflict Crush Depth. 14 - Statis Void Sash projectiles no longer inflict God Slayer Inferno. 15 - Venerated Locket projectiles now inflict God Slayer Inferno. 16 - Hallowed Rune projectiles no longer inflict Astral Infection. 17 - Nebulous Core projectiles now inflict God Slayer Inferno.
85 lines
3.4 KiB
C#
85 lines
3.4 KiB
C#
using CalamityMod.Balancing;
|
|
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Magic;
|
|
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
|
|
{
|
|
// TODO -- this item includes a dodge accessory, Brain of Cthulhu
|
|
public class TheAmalgam : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 1;
|
|
DisplayName.SetDefault("The Amalgam");
|
|
Tooltip.SetDefault("Extends the duration of potion buffs by 100% and potion buffs remain active even after you die\n" +
|
|
"15% increased damage\n" +
|
|
"Shade rains down when you are hit\n" +
|
|
"Grants the ability to dodge attacks\n" +
|
|
$"The dodge has a {BalancingConstants.AmalgamDodgeCooldown / 60} second cooldown which is shared with all other dodges and reflects\n" +
|
|
"Temporarily increases critical strike chance and summon damage after a dodge\n" +
|
|
"Nearby enemies receive a variety of sickness-related debuffs when you are hit");
|
|
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.Rarity14BuyPrice;
|
|
Item.rare = RarityType<DarkBlue>();
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.amalgam = true;
|
|
player.brainOfConfusionItem = Item;
|
|
player.GetDamage<GenericDamageClass>() += 0.15f;
|
|
|
|
if (player.immune)
|
|
{
|
|
var source = player.GetSource_Accessory(Item);
|
|
if (player.miscCounter % 6 == 0)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer)
|
|
{
|
|
int damage = (int)player.GetBestClassDamage().ApplyTo(300);
|
|
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
|
|
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
|
|
{
|
|
rain.DamageType = DamageClass.Generic;
|
|
rain.tileCollide = false;
|
|
rain.penetrate = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<AmalgamatedBrain>().
|
|
AddIngredient<UnholyCore>(5).
|
|
AddIngredient<MolluskHusk>(10).
|
|
AddIngredient<SulphuricScale>(15).
|
|
AddIngredient<PlagueCellCanister>(15).
|
|
AddIngredient<CosmiliteBar>(5).
|
|
AddIngredient<AscendantSpiritEssence>(4).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|