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

◆ SummonCrystalDirect()

static void Terraria.GameContent.Events.DD2Event.SummonCrystalDirect ( int x,
int y,
int whoAsks )
inlinestatic

Definition at line 558 of file DD2Event.cs.

559 {
560 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
561 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
562 if (!NPC.AnyNPCs(548))
563 {
564 Tile tileSafely = Framing.GetTileSafely(x, y);
565 if (tileSafely.active() && tileSafely.type == 466)
566 {
567 Point point = default(Point);
568 ((Point)(ref point))._002Ector(x * 16, y * 16);
569 point.X -= tileSafely.frameX / 18 * 16;
570 point.Y -= tileSafely.frameY / 18 * 16;
571 point.X += 40;
572 point.Y += 64;
574 NPC.NewNPC(Main.player[whoAsks].GetNPCSource_TileInteraction(x, y), point.X, point.Y, 548);
576 }
577 }
578 }
static void StartInvasion(int difficultyOverride=-1)
Definition DD2Event.cs:229

References Terraria.NPC.AnyNPCs(), Terraria.GameContent.Events.DD2Event.DropStarterCrystals(), Terraria.Framing.GetTileSafely(), Terraria.NPC.NewNPC(), Terraria.Main.player, and Terraria.GameContent.Events.DD2Event.StartInvasion().

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

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