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

◆ SummonBetsy()

static void Terraria.GameContent.Events.DD2Event.SummonBetsy ( )
inlinestaticprivate

Definition at line 972 of file DD2Event.cs.

973 {
974 //IL_0040: Unknown result type (might be due to invalid IL or missing references)
975 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
976 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
977 if (!_spawnedBetsyT3 && !NPC.AnyNPCs(551))
978 {
979 Vector2 position = default(Vector2);
980 ((Vector2)(ref position))._002Ector(1f, 1f);
981 int num = NPC.FindFirstNPC(548);
982 if (num != -1)
983 {
984 position = Main.npc[num].Center;
985 }
986 NPC.SpawnOnPlayer(Player.FindClosest(position, 1, 1), 551);
987 _spawnedBetsyT3 = true;
988 }
989 }

References Terraria.GameContent.Events.DD2Event._spawnedBetsyT3, Terraria.NPC.AnyNPCs(), Terraria.Player.FindClosest(), Terraria.NPC.FindFirstNPC(), Terraria.Main.npc, and Terraria.NPC.SpawnOnPlayer().

Referenced by Terraria.GameContent.Events.DD2Event.UpdateTime().

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