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

◆ ReduceRemainingChumsInPool()

void Terraria.Projectile.ReduceRemainingChumsInPool ( )
inlineprivate

Definition at line 56942 of file Projectile.cs.

56943 {
56944 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
56945 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
56946 //IL_00bd: Unknown result type (might be due to invalid IL or missing references)
56947 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
56948 //IL_0075: Unknown result type (might be due to invalid IL or missing references)
56949 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
56950 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
56951 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
56952 //IL_0100: Unknown result type (might be due to invalid IL or missing references)
56953 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
56954 int x = (int)base.Center.X / 16;
56955 int num = (int)base.Center.Y / 16;
56957 List<int> list2 = new List<int>();
56958 for (int i = 0; i < 1000; i++)
56959 {
56960 Projectile projectile = Main.projectile[i];
56961 if (projectile.active && projectile.owner == Main.myPlayer && projectile.timeLeft > 60 && projectile.type == 820)
56962 {
56963 list.Add(new Tuple<int, Point>(i, (projectile.Center + Vector2.UnitY * 16f).ToTileCoordinates()));
56964 }
56965 }
56966 if (list.Count == 0)
56967 {
56968 return;
56969 }
56971 Point point = default(Point);
56972 for (int j = minX; j <= maxX; j++)
56973 {
56974 point.X = j;
56975 int num2 = num;
56976 while (Main.tile[j, num2].liquid > 0 && !WorldGen.SolidTile(j, num2) && num2 < Main.maxTilesY - 10)
56977 {
56978 num2 = (point.Y = num2 + 1);
56979 for (int num3 = list.Count - 1; num3 >= 0; num3--)
56980 {
56981 if (list[num3].Item2 == point)
56982 {
56983 list2.Add(list[num3].Item1);
56984 list.RemoveAt(num3);
56985 }
56986 }
56987 if (list.Count == 0)
56988 {
56989 break;
56990 }
56991 }
56992 if (list.Count == 0)
56993 {
56994 break;
56995 }
56996 }
56997 for (int k = 0; k < list2.Count; k++)
56998 {
56999 Projectile obj = Main.projectile[list2[k]];
57000 obj.ai[0] += 1f;
57001 obj.netUpdate = true;
57002 }
57003 }
static void GetFishingPondWidth(int x, int y, out int minX, out int maxX)

References Terraria.Entity.active, Terraria.Entity.Center, Terraria.Main.maxTilesY, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.WorldGen.SolidTile(), Terraria.Main.tile, Terraria.Projectile.timeLeft, and Terraria.Projectile.type.

+ Here is the call graph for this function: