Files
CalamityModPublic/Projectiles/Summon/BrimstoneLaserSummon.cs
T
Andrew Marheine de49f1a3ff 1 - Fixed Third Sage healing for sure now.
2 - Reworked Cal Clone's AI completely.
3 - Reworked Cryogen's attacks to be cooler...get it?
4 - Malice Mode affects more things.
5 - Malice Mode can be used outside of Rev Mode.
6 - Wall of Flesh shoots a demon scythe from its mouth in rev+ when it belches out leeches.
7 - Made some Malice Mode bosses harder and some easier.
8 - Malice Mode increases certain projectile speeds by 25%.
9 - Malice Mode increases boss damage by 35%.
10 - Rev+ Golem falls faster.
11 - Golem Head hitbox is remaining fucked because I hate the glowmask code, I'm not touching it.
12 - Malice Mode bosses have increased timed DR.
2021-04-29 14:06:18 -05:00

55 lines
1.8 KiB
C#

using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class BrimstoneLaserSummon : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/Melee/BrimstoneLaser";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Laser");
ProjectileID.Sets.MinionShot[projectile.type] = true;
}
public override void SetDefaults()
{
projectile.width = 2;
projectile.height = 2;
projectile.aiStyle = 1;
aiType = ProjectileID.DeathLaser;
projectile.friendly = true;
projectile.ignoreWater = true;
projectile.minion = true;
projectile.minionSlots = 0f;
projectile.penetrate = 1;
projectile.alpha = 120;
projectile.timeLeft = 300;
}
public override void AI()
{
Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f);
projectile.velocity.X *= 1.05f;
projectile.velocity.Y *= 1.05f;
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
}
public override Color? GetAlpha(Color lightColor) => new Color(250, 50, 50, projectile.alpha);
}
}