Files
CalamityModPublic/Projectiles/Boss/IceBlast.cs
T
Andrew Marheine c882750bc8 1 - Reduced Boss Rush boss damage.
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.
2020-11-01 13:58:46 -06:00

91 lines
3.3 KiB
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class IceBlast : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ice Blast");
}
public override void SetDefaults()
{
projectile.width = 10;
projectile.height = 10;
projectile.penetrate = -1;
projectile.hostile = true;
projectile.timeLeft = 300;
}
public override void AI()
{
Lighting.AddLight((int)((projectile.position.X + (projectile.width / 2)) / 16f), (int)((projectile.position.Y + (projectile.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
projectile.rotation = (float)Math.Atan2(projectile.velocity.Y, projectile.velocity.X) + 1.57f;
int num3;
for (int num322 = 0; num322 < 2; num322 = num3 + 1)
{
int num323 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 92, projectile.velocity.X, projectile.velocity.Y, 50, default, 0.6f);
Main.dust[num323].noGravity = true;
Dust dust = Main.dust[num323];
dust.velocity *= 0.3f;
num3 = num322;
}
if (projectile.ai[1] == 0f)
{
projectile.ai[1] = 1f;
Main.PlaySound(SoundID.Item28, projectile.position);
}
}
public override Color? GetAlpha(Color lightColor)
{
return Main.dayTime ? new Color(50, 50, 255, projectile.alpha) : new Color(255, 255, 255, projectile.alpha);
}
public override void Kill(int timeLeft)
{
int num497 = 10;
Main.PlaySound(SoundID.Item27, projectile.position);
int num3;
for (int num498 = 0; num498 < num497; num498 = num3 + 1)
{
int num499 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 92, 0f, 0f, 0, default, 1f);
if (Main.rand.Next(3) != 0)
{
Dust dust = Main.dust[num499];
dust.velocity *= 2f;
Main.dust[num499].noGravity = true;
dust = Main.dust[num499];
dust.scale *= 1.75f;
}
else
{
Dust dust = Main.dust[num499];
dust.scale *= 0.5f;
}
num3 = num498;
}
}
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.Frostburn, 90, true);
target.AddBuff(BuffID.Chilled, 60, true);
target.AddBuff(BuffID.Frozen, 30, true);
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
return false;
}
}
}