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.
46 lines
1.8 KiB
C#
46 lines
1.8 KiB
C#
using CalamityMod.Buffs.DamageOverTime;
|
|
using CalamityMod.Projectiles.BaseProjectiles;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Typeless
|
|
{
|
|
public class NebulaStar : BaseSporeSacProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Star");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.width = Projectile.height = 34;
|
|
Projectile.friendly = true;
|
|
Projectile.alpha = 255;
|
|
Projectile.penetrate = 1;
|
|
Projectile.tileCollide = false;
|
|
Projectile.ignoreWater = true;
|
|
Projectile.timeLeft = 3600;
|
|
}
|
|
|
|
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 180);
|
|
|
|
if (Projectile.owner == Main.myPlayer && !FadingOut)
|
|
{
|
|
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 1f, 1f, 0.3f);
|
|
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<NebulaDust>(), Projectile.damage, 0f, Projectile.owner, 0f, 0f);
|
|
}
|
|
}
|
|
|
|
public override void PostDraw(Color lightColor)
|
|
{
|
|
Rectangle frame = new Rectangle(0, 0, ModContent.Request<Texture2D>(Texture).Value.Width, ModContent.Request<Texture2D>(Texture).Value.Height);
|
|
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/NebulaStarGlow").Value, Projectile.Center - Main.screenPosition, frame, Color.White * ((255 - Projectile.alpha) / 255f), Projectile.rotation, Projectile.Size / 2, 1f, SpriteEffects.None, 0);
|
|
}
|
|
}
|
|
}
|