46813 {
46814 int num = 0;
46819 value = Utils.Clamp(
value, 10, Main.maxTilesX - 10);
46820 value2 = Utils.Clamp(
value2, 10, Main.maxTilesX - 10);
46821 value3 = Utils.Clamp(
value3, 10, Main.maxTilesY - 10);
46822 value4 = Utils.Clamp(
value4, 10, Main.maxTilesY - 10);
46825 {
46826 value5.Y = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY;
46827 }
46830 for (
int i = -2;
i <= 2;
i++)
46831 {
46832 for (
int j = -2;
j <= 2;
j++)
46833 {
46834 int num2 = point.X +
i;
46835 int num3 = point.Y +
j;
46837 {
46839 if (
tileSafely.active() && tileSafely.type == 494)
46840 {
46842 break;
46843 }
46844 }
46845 }
46846 }
46847 bool result = false;
46848 if (
list.Count > 0)
46849 {
46853 {
46856 {
46859 }
46860 }
46862 {
46863 result = true;
46864 for (
int l = 0;
l < 1000;
l++)
46865 {
46867 {
46868 Main.projectile[
l].Kill();
46869 }
46870 }
46872 Projectile.NewProjectile(
GetProjectileSource_TileInteraction(
tuple.Item1,
tuple.Item2), (
float)(
tuple.Item1 * 16) + 8.5f,
tuple.Item2 * 16 + 6, 0f, 0f,
projType, 0, 0f,
whoAmI, 0f, -1f);
46873 }
46874 }
46875 return result;
46876 }
void Add(TKey key, TValue value)
static bool[] IsAGolfBall
void GetPreferredGolfBallToUse(out int projType)
IEntitySource GetProjectileSource_TileInteraction(int tileCoordsX, int tileCoordsY)
static float Distance(Vector2 value1, Vector2 value2)