Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ViolentlySpawnNerdySlime()

void Terraria.NPC.ViolentlySpawnNerdySlime ( )
inlineprivate

Definition at line 71791 of file NPC.cs.

71792 {
71793 int num = NewNPC(GetSpawnSourceForNPCFromNPCAI(), (int)base.Center.X - 10, (int)base.Center.Y, 670);
71794 NPC obj = Main.npc[num];
71795 Vector2 movementVector = (obj.velocity = new Vector2(Main.rand.NextFloatDirection() * 3f, -10f));
71796 obj.netUpdate = true;
71797 WorldGen.CheckAchievement_RealEstateAndTownSlimes();
71799 {
71800 PositionInWorld = base.Center,
71801 MovementVector = movementVector,
71802 UniqueInfoPiece = 0
71803 });
71804 }
static void BroadcastParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
IEntitySource GetSpawnSourceForNPCFromNPCAI()
Definition NPC.cs:87546
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
Definition NPC.cs:77654

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastParticleSpawn(), Terraria.WorldGen.CheckAchievement_RealEstateAndTownSlimes(), Terraria.NPC.GetSpawnSourceForNPCFromNPCAI(), Terraria.NPC.NewNPC(), Terraria.Main.npc, System.obj, Terraria.Main.rand, and Microsoft.Xna.Framework.Graphics.Vector2.

Referenced by Terraria.NPC.DoDeathEvents().