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

◆ ViolentlySpawnNerdySlime()

void Terraria.NPC.ViolentlySpawnNerdySlime ( )
inlineprivate

Definition at line 85193 of file NPC.cs.

85194 {
85195 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
85196 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
85197 //IL_0063: Unknown result type (might be due to invalid IL or missing references)
85198 //IL_0068: Unknown result type (might be due to invalid IL or missing references)
85199 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
85200 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
85201 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
85202 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
85203 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
85204 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
85205 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
85206 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
85207 int num = NewNPC(GetSpawnSourceForNPCFromNPCAI(), (int)base.Center.X - 10, (int)base.Center.Y, 670);
85208 NPC obj = Main.npc[num];
85209 Vector2 movementVector = (obj.velocity = new Vector2(Main.rand.NextFloatDirection() * 3f, -10f));
85210 obj.netUpdate = true;
85211 WorldGen.CheckAchievement_RealEstateAndTownSlimes();
85213 {
85214 PositionInWorld = base.Center,
85215 MovementVector = movementVector,
85216 UniqueInfoPiece = 0
85217 });
85218 }
static void BroadcastParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
IEntitySource GetSpawnSourceForNPCFromNPCAI()
Definition NPC.cs:107568
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)
Spawns an NPC into the game world with the given type. This method should not be called on multipla...
Definition NPC.cs:91239

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastParticleSpawn(), Terraria.WorldGen.CheckAchievement_RealEstateAndTownSlimes(), Terraria.NPC.GetSpawnSourceForNPCFromNPCAI(), Terraria.NPC.NewNPC(), Terraria.Main.npc, and Terraria.Main.rand.

Referenced by Terraria.NPC.DoDeathEvents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: