Files
CalamityModPublic/Projectiles/Summon/SummonAstralExplosion.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

36 lines
1.1 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class SummonAstralExplosion : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Summon";
public override void SetStaticDefaults()
{
ProjectileID.Sets.MinionShot[Projectile.type] = true;
Main.projFrames[Projectile.type] = 6;
}
public override void SetDefaults()
{
Projectile.width = 44;
Projectile.height = 48;
Projectile.friendly = true;
Projectile.penetrate = 2;
Projectile.timeLeft = Main.projFrames[Projectile.type] * 5;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 30;
Projectile.DamageType = DamageClass.Summon;
}
public override void AI()
{
// Bluish cyan light
Lighting.AddLight(Projectile.Center, 66f / 255f, 189f / 255f, 181f / 255f);
if (Projectile.timeLeft % 5f == 4f)
Projectile.frame++;
}
}
}