terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ NewNPC()

static int Terraria.NPC.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 )
inlinestatic

Definition at line 6568 of file NPC.cs.

6569 {
6570 int num = 1;
6571 if (num == 0)
6572 {
6573 }
6574 int num3;
6575 if (num != 0)
6576 {
6577 if (num == 0)
6578 {
6579 }
6580 int num2;
6581 if (num2 != 0)
6582 {
6583 num3 = 614;
6584 }
6585 }
6586 if (num3 == 0)
6587 {
6588 }
6589 int availableNPCSlot = NPC.GetAvailableNPCSlot(Y, Type);
6590 if (num3 == 0)
6591 {
6592 }
6593 NPC.GiveTownUniqueDataToNPCsThatNeedIt(Y, availableNPCSlot);
6594 int num4 = 32768;
6595 int num5;
6596 if (num4 != 0)
6597 {
6598 bool netHost = Main.NetHost;
6599 if (num4 == 0)
6600 {
6601 }
6603 if (networkText != null && networkText == null)
6604 {
6605 throw new ArrayTypeMismatchException();
6606 }
6607 num5 = 200;
6608 }
6609 if (num4 == 0)
6610 {
6611 }
6613 while (networkText2 != null)
6614 {
6615 }
6616 string text;
6617 string textValue = Language.GetTextValue("Announcement.HasAwoken", text);
6618 int num6 = 175;
6619 int num7 = 75;
6620 int num8 = 255;
6621 Main.NewText(textValue, (byte)num6, (byte)num7, (byte)num8);
6622 return num5;
6623 }
class f__AnonymousType0<< Count > j__TPar
static string GetTextValue(string key)
Definition Language.cs:54

References Terraria.NPC.GetAvailableNPCSlot(), Terraria.Localization.Language.GetTextValue(), Terraria.NPC.GiveTownUniqueDataToNPCsThatNeedIt(), j__TPar, Terraria.Main.NetHost, Terraria.Main.NewText(), System.text, and System.Y.