Files
CalamityModPublic/Projectiles/Melee/NebulaShot.cs
T
mountaindrew10 b2624d86a9 1 - Blazing Star now inflicts Hellfire.
2 - Frostcrush Valari no longer inflicts Frostburn and Crush Depth.
3 - Icebreaker now inflicts Nightwither on stealth strikes for 7 seconds.
4 - Kelvin Catalyst stealth strike now inflicts Glacial State.
5 - Mangrove Chakram now inflicts Acid Venom instead of Cursed Inferno.
6 - Subduction Slicer now inflicts Hellfire instead of On Fire! and the length of the Daybroken debuff on stealth strikes is now 7 seconds.
7 - Elemental Disk no longer inflicts debuffs.
8 - Eradicator now inflicts God Slayer Inferno instead of On Fire! and Frostburn.
9 - Molten Amputator now inflits Holy Flames.
10 - Valediction no longer inflicts Wet.
11 - Gel Darts no longer inflict Slow.
12 - Stormfront Razor now inflicts Electrified.
13 - Cosmic Kunai no longer inflicts God Slayer Inferno.
14 - Jaws of Oblivion no longer inflicts Marked for Death.
15 - Utensil Poker no longer inflicts Bleeding, Burning Blood and Well Fed.
16 - Sludge Splotch now inflicts Slimed instead of Slow.
17 - Web Ball stealth strike Webbed duration increased to 2 seconds.
18 - Tooth Balls now inflict Burning Blood.
19 - Deep Wounder now inflicts Marked for Death on stealth strikes instead of Crush Depth and inflicts Crush Depth with regular hits.
20 - Gacruxian Mollusk sparks now inflict Electrified.
21 - Bloodsoaked Crasher no longer inflicts Brimstone Flames.
22 - Hypothermia stealth strikes now inflict Glacial State.
23 - Seared Pan no longer inflicts Burning Blood and inflicts Daybroken instead of On Fire!
24 - The Reaper now inflicts Irradiated and Sulphuric Poisoning.
2022-12-04 04:45:46 -06:00

66 lines
2.1 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
using CalamityMod.Buffs.DamageOverTime;
namespace CalamityMod.Projectiles.Melee
{
public class NebulaShot : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shot");
}
public override void SetDefaults()
{
Projectile.width = 4;
Projectile.height = 4;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.DamageType = DamageClass.Melee;
Projectile.alpha = 255;
Projectile.penetrate = 1;
Projectile.extraUpdates = 5;
Projectile.timeLeft = 600;
}
public override void AI()
{
if (Projectile.ai[1] == 0f)
{
Projectile.ai[1] = 1f;
SoundEngine.PlaySound(SoundID.Item12, Projectile.position);
}
if (Projectile.alpha > 0)
{
Projectile.alpha -= 15;
}
if (Projectile.alpha < 0)
{
Projectile.alpha = 0;
}
Lighting.AddLight(Projectile.Center, 0.4f, 0.2f, 0.4f);
for (int num121 = 0; num121 < 5; num121++)
{
Dust dust4 = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool(3) ? 56 : 242, Projectile.velocity.X, Projectile.velocity.Y, 100, default, 1f)];
dust4.velocity = Vector2.Zero;
dust4.position -= Projectile.velocity / 5f * (float)num121;
dust4.noGravity = true;
dust4.scale = 0.8f;
dust4.noLight = true;
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 90);
}
}
}