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

◆ TransformCopperSlime()

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

Definition at line 13924 of file NPC.cs.

13925 {
13926 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
13927 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
13928 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
13929 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
13930 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
13931 //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
13932 //IL_00bd: Unknown result type (might be due to invalid IL or missing references)
13933 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
13934 if (Main.netMode == 1)
13935 {
13936 NetMessage.SendData(140, -1, -1, null, 1, npcIndex);
13937 }
13938 else if (!unlockedSlimeCopperSpawn && Main.npc.IndexInRange(npcIndex))
13939 {
13940 NPC nPC = Main.npc[npcIndex];
13941 if (nPC.type >= 0 && NPCID.Sets.CanConvertIntoCopperSlimeTownNPC[nPC.type])
13942 {
13944 NetMessage.SendData(7);
13945 Vector2 vector = nPC.velocity;
13946 nPC.Transform(684);
13947 nPC.netUpdate = true;
13948 nPC.velocity = vector;
13950 {
13951 PositionInWorld = nPC.Center,
13952 MovementVector = Vector2.Zero,
13953 UniqueInfoPiece = 1
13954 });
13955 }
13956 }
13957 }
static void BroadcastParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
static bool[] CanConvertIntoCopperSlimeTownNPC
If true for a given NPC type (F:Terraria.NPC.type), then that NPC can pick up F:Terraria....
Definition NPCID.cs:238
static bool unlockedSlimeCopperSpawn
Definition NPC.cs:760

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastParticleSpawn(), Terraria.ID.NPCID.Sets.CanConvertIntoCopperSlimeTownNPC, Terraria.Main.netMode, Terraria.Main.npc, Terraria.NetMessage.SendData(), and Terraria.NPC.unlockedSlimeCopperSpawn.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Item.GetPickedUpByMonsters_Special().

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