Files
CalamityModPublic/Projectiles/Typeless/TrueBattleSpawn.cs
T
termigator1359 1b22071cf4 squash merge: Removed all unused textures
Removed nearly all unused textures in the entire mod, especially focusing on projectiles.
Apotheosis & the Death Valley Duster weapon line were ignored to prevent merge conflicts.
2020-11-15 14:25:46 -05:00

41 lines
1.1 KiB
C#

using CalamityMod.NPCs.Calamitas;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class TrueBattleSpawn : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Spawn");
}
public override void SetDefaults()
{
projectile.width = 6;
projectile.height = 6;
projectile.aiStyle = 1;
projectile.scale = 1f;
projectile.penetrate = 1;
projectile.timeLeft = 20;
projectile.tileCollide = false;
aiType = ProjectileID.Bullet;
}
public override void AI()
{
Player player = Main.player[projectile.owner];
projectile.ai[1]++;
if (projectile.ai[1] >= 0)
{
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasRun3>());
projectile.ai[1] = -30;
}
}
}
}