Files
CalamityModPublic/Projectiles/Pets/PrimroseKeepsakeDisplay.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

34 lines
947 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Pets
{
public class PrimroseKeepsakeDisplay : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Pets";
public override void SetStaticDefaults()
{
Main.projPet[Projectile.type] = true;
ProjectileID.Sets.CharacterPreviewAnimations[Projectile.type] = ProjectileID.Sets.SimpleLoop(0, 0, 1)
.WithOffset(-22f, 0f).WithSpriteDirection(-1).WhenNotSelected(0, 0);
}
public override void SetDefaults()
{
Projectile.width = 54;
Projectile.height = 38;
Projectile.friendly = true;
Projectile.penetrate = -1;
Projectile.timeLeft = 1;
}
public override void AI()
{
Projectile.Kill();
}
}
}