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

◆ CheckArenaScore()

static void Terraria.StrayMethods.CheckArenaScore ( Vector2 arenaCenter,
out Point xLeftEnd,
out Point xRightEnd,
int walkerWidthInTiles = 5,
int walkerHeightInTiles = 10 )
inlinestatic

Definition at line 93 of file StrayMethods.cs.

94 {
95 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
96 //IL_0003: Unknown result type (might be due to invalid IL or missing references)
97 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
98 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
99 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
100 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
101 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
102 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
103 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
104 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
105 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
106 //IL_0052: Unknown result type (might be due to invalid IL or missing references)
107 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
108 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
109 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
110 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
111 //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
112 //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
113 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
114 //IL_008d: Unknown result type (might be due to invalid IL or missing references)
115 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
116 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
117 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
118 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
119 bool flag = false;
120 Point point = arenaCenter.ToTileCoordinates();
121 xLeftEnd = (xRightEnd = point);
122 Collision.ExpandVertically(point.X, point.Y, out var topY, out var bottomY, 0, 4);
123 point.Y = bottomY;
124 if (flag)
125 {
126 Dust.QuickDust(point, Color.Blue).scale = 5f;
127 }
132 if (flag)
133 {
134 Dust.QuickDustLine(lastIteratedFloorSpot.ToWorldCoordinates(), lastIteratedFloorSpot2.ToWorldCoordinates(), 50f, Color.Pink);
135 }
138 }
static void SendWalker(Point startFloorPosition, int height, int direction, out int distanceCoveredInTiles, out Point lastIteratedFloorSpot, int maxDistance=100, bool showDebug=false)

References Terraria.Collision.ExpandVertically(), Terraria.Dust.QuickDust(), Terraria.Dust.QuickDustLine(), and Terraria.StrayMethods.SendWalker().

Referenced by Terraria.NPC.VanillaAI_Inner(), and Terraria.GameContent.Events.DD2Event.WouldFailSpawningHere().

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