Definition at line 50137 of file Player.cs.
50138 {
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
50157
50158
50159
50160
50161
50162
50163
50164
50165
50166
50167
50168
50169
50170
50171
50172
50173
50174
50175
50176
50177
50178
50179 Point point =
targetSpot.ToTileCoordinates();
50185 float num =
float.PositiveInfinity;
50186 for (
int i = 0; i <
samples.Length; i++)
50187 {
50189 {
50191 }
50192 }
50195 Rectangle value = default(Rectangle);
50196 ((Rectangle)(
ref value)).
_002Ector(point.X, point.Y, 1, 1);
50198 Rectangle
value2 =
default(Rectangle);
50201 value = Rectangle.Intersect(value,
value2);
50204 Vector2
value3 =
default(Vector2);
50205 for (
int j = ((Rectangle)(
ref value)).
Left;
j <= ((Rectangle)(
ref value)).
Right;
j++)
50206 {
50207 for (
int k = ((Rectangle)(
ref value)).Top;
k <= ((Rectangle)(
ref value)).
Bottom;
k++)
50208 {
50210 {
50211 continue;
50212 }
50215 {
50217 {
50218 list.Add(
new Point(
j,
k));
50219 }
50220 else
50221 {
50223 }
50224 }
50225 }
50226 }
50227 if (list.Count == 0 &&
list2.Count == 0)
50228 {
50229 list.Add((
base.Center.ToTileCoordinates().ToVector2() + Main.rand.NextVector2Square(-2
f, 2
f)).ToPoint());
50230 }
50232 if (
list3.Count == 0)
50233 {
50235 }
50236 int index = Main.rand.Next(
list3.Count);
50237 return list3[index];
50238 }
bool FindSharpTearsOpening(int x, int y, bool acceptLeft, bool acceptRight, bool acceptUp, bool acceptDown)
References Terraria.Collision.AimingLaserScan(), Terraria.Entity.Bottom, Terraria.Player.FindSharpTearsOpening(), Terraria.Entity.Left, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.rand, Terraria.Entity.Right, and Terraria.WorldGen.SolidTile2().
Referenced by Terraria.Player.ItemCheck_Shoot().