2 - Buffed DSA and DoG Lore by reducing the incrased damage taken. DSA went from 25% to 15% and DoG Lore went from 10% to 5%. 3 - Reduced Affliction damage boost by 2%. 4 - Trinket of Chi now gives its buff in 1 second instead of 2 seconds. 5 - Alchemical Flask and Plague Hive now disable the Plague debuff darkness effect. 6 - Increased Yharim's Insignia melee damage boost by 5%. 7 - Bloodworms have an increased chance to spawn and only spawn after the player has met the Old Duke at the end of the Acid Rain Tier 3. 8 - Amalgamated Brain damage boost decreased by 2% and the shade rain now triggers every 6 frames instead of at random. 9 - Void of Calamity now reduces damage reduction by 10% instead of 15% and the flames now rain down every 10 frames instead of at random. 10 - Heart of the Elements now boosts damage by 5% instead of 8% (7% if boobs are disabled). 11 - Rotten Brain now rains shade every 6 frames instead of at random. 12 - Amalgamated and Rotten Brain and Amalgam shade rain no longer penetrate. 13 - Samurai Badge downside removed. 14 - The Amalgam now rains shade and fire every 8 frames instead of at random. 15 - Void of Extinction rains fire down every 10 frames instead of at random. 16 - Removed Badge of Bravery from Yharim's Insignia recipe and Yharim's Insignia now takes Divine Geodes to craft. 17 - Buffed Galactus Blade damage by 25. 18 - Reduced Luxor's Gift projectile damage scaling values, the caps are still the same. 19 - Reduced Astrum Aureus HP by about 12.5%. 20 - Ceaseless Void Dark Energies now spread out. 21 - Desert Scourge out of desert enrage is more noticeable. 22 - DoG phase 1 and 2, Destroyer, Astrum Deus and Cosmic Guardians greatly increase speed when far away from their target. 23 - Hive Mind Hive Blobs die immediately when phase 1 dies. 24 - Leviathan and Anahita enrage is more noticeable. 25 - Plaguebringer Goliath Mines emit some light. 26 - Polter Clone turns invisible, aside from its glowmask, when it's lining up for its charge to convey that it doesn't deal contact damage. 27 - Ravager Flame Pillars spawn further away from the player. 28 - Detached Ravager Head stays further away from the player. 29 - SCal brothers move up and down more quickly. 30 - Cal Clone enrage is more noticeable. 31 - Astrum Aureus enrage is more noticeable. 32 - Made Eye of Cthulhu, Brain of Cthulhu, Twins and Eater of Worlds enrages more noticeable. 33 - Fixed Destroyer coiling issue. 34 - Destroyer changes color to purple during flight phase. 35 - Skeletron Prime rockets are slower. 36 - Moon Lord Phantasmal Eyes spawn slower and have a lower max velocity. 37 - Reduced damage of post-DoG moon enemies, post-Yharon eclipse enemies and post-ML dungeon enemies. 38 - Reduced many Cal Clone and Brimstone Elemental projectile-inflicted debuff durations. 39 - Cryogen projectiles turn blue during daytime. 40 - Made Ravager homing laser things hopefully more visible. 41 - Aegis Blade, Grand Guardian and Lion Heart true melee explosions deal less damage on each subsequent hit. 42 - Brimlash split projectiles home in quicker. 43 - Omage Biome Blade projectiles have less range. 44 - Death Mode Astral shader intensity reduced. 45 - Brimtone Elemental beam darts have larger gaps between them and now collide with tiles.
124 lines
4.7 KiB
C#
124 lines
4.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Typeless;
|
|
using CalamityMod.World;
|
|
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class VoidofExtinction : ModItem
|
|
{
|
|
public const int FireProjectiles = 2;
|
|
public const float FireAngleSpread = 120;
|
|
public int FireCountdown = 0;
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Void of Extinction");
|
|
Tooltip.SetDefault("No longer cursed\n" +
|
|
"Drops brimstone fireballs from the sky occasionally\n" +
|
|
"15% increase to all damage\n" +
|
|
"Brimstone fire rains down while invincibility is active\n" +
|
|
"Temporary immunity to lava, greatly reduces lava burn damage, and 25% increased damage while in lava");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
|
item.expert = true;
|
|
item.rare = 8;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
if (CalamityWorld.death)
|
|
{
|
|
foreach (TooltipLine line2 in list)
|
|
{
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip4")
|
|
{
|
|
line2.text = "Temporary immunity to lava, greatly reduces lava burn damage, and 25% increased damage while in lava\n" +
|
|
"Provides heat protection in Death Mode";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool CanEquipAccessory(Player player, int slot) => !player.Calamity().calamityRing;
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.ObsidianRose);
|
|
recipe.AddIngredient(ModContent.ItemType<Gehenna>());
|
|
recipe.AddIngredient(ModContent.ItemType<CalamityRing>());
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>());
|
|
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 3);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.calamityRing = true;
|
|
modPlayer.voidOfExtinction = true;
|
|
player.lavaRose = true;
|
|
player.lavaMax += 240;
|
|
player.allDamage += 0.15f;
|
|
if (player.lavaWet)
|
|
{
|
|
player.allDamage += 0.25f;
|
|
}
|
|
if (player.immune)
|
|
{
|
|
if (player.miscCounter % 10 == 0)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer)
|
|
{
|
|
CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<StandingFire>(), (int)(30 * player.AverageDamage()), 5f, player.whoAmI, 0, 1, 60);
|
|
}
|
|
}
|
|
}
|
|
if (FireCountdown == 0)
|
|
{
|
|
FireCountdown = 600;
|
|
}
|
|
if (FireCountdown > 0)
|
|
{
|
|
FireCountdown--;
|
|
if (FireCountdown == 0)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer)
|
|
{
|
|
int projSpeed = 25;
|
|
float spawnX = Main.rand.Next(1000) - 500 + player.Center.X;
|
|
float spawnY = -1000 + player.Center.Y;
|
|
Vector2 baseSpawn = new Vector2(spawnX, spawnY);
|
|
Vector2 baseVelocity = player.Center - baseSpawn;
|
|
baseVelocity.Normalize();
|
|
baseVelocity *= projSpeed;
|
|
for (int i = 0; i < FireProjectiles; i++)
|
|
{
|
|
Vector2 spawn = baseSpawn;
|
|
spawn.X += i * 30 - (FireProjectiles * 15);
|
|
Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles)));
|
|
velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f;
|
|
Projectile.NewProjectile(spawn, velocity, ModContent.ProjectileType<BrimstoneHellfireballFriendly2>(), (int)(70 * player.AverageDamage()), 5f, Main.myPlayer, 0f, 0f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|