This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
36 lines
1.1 KiB
C#
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++;
|
|
}
|
|
}
|
|
}
|