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

◆ TransformElderSlime()

static void Terraria.NPC.TransformElderSlime ( int npcIndex)
inlinestatic

Definition at line 13889 of file NPC.cs.

13890 {
13891 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
13892 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
13893 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
13894 //IL_0092: Unknown result type (might be due to invalid IL or missing references)
13895 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
13896 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
13897 //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
13898 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
13899 if (Main.netMode == 1)
13900 {
13901 NetMessage.SendData(140, -1, -1, null, 2, npcIndex);
13902 }
13903 else if (!unlockedSlimeOldSpawn && Main.npc.IndexInRange(npcIndex))
13904 {
13905 NPC nPC = Main.npc[npcIndex];
13906 if (nPC.type == 685)
13907 {
13908 unlockedSlimeOldSpawn = true;
13909 NetMessage.SendData(7);
13910 Vector2 vector = nPC.velocity;
13911 nPC.Transform(679);
13912 nPC.netUpdate = true;
13913 nPC.velocity = vector;
13915 {
13916 PositionInWorld = nPC.Center,
13917 MovementVector = Vector2.Zero,
13918 UniqueInfoPiece = 2
13919 });
13920 }
13921 }
13922 }
static void BroadcastParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
static bool unlockedSlimeOldSpawn
Definition NPC.cs:750

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastParticleSpawn(), Terraria.Main.netMode, Terraria.Main.npc, Terraria.NetMessage.SendData(), and Terraria.NPC.unlockedSlimeOldSpawn.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Main.HoverOverNPCs().

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