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

◆ CanSpawnSandstormHostile()

static bool Terraria.StrayMethods.CanSpawnSandstormHostile ( Vector2 position,
int expandUp,
int expandDown )
inlinestatic

Definition at line 47 of file StrayMethods.cs.

48 {
49 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
50 //IL_0003: Unknown result type (might be due to invalid IL or missing references)
51 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
52 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
53 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
54 bool result = true;
55 Point point = position.ToTileCoordinates();
56 for (int i = -1; i <= 1; i++)
57 {
58 Collision.ExpandVertically(point.X + i, point.Y, out var topY, out var bottomY, expandUp, expandDown);
59 topY++;
60 bottomY--;
61 if (bottomY - topY < 20)
62 {
63 result = false;
64 break;
65 }
66 }
67 return result;
68 }

References Terraria.Collision.ExpandVertically().

Referenced by Terraria.NPC.VanillaAI_Inner().

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