From df5c1180559fa07822a75afb57f2af341567e619 Mon Sep 17 00:00:00 2001 From: AkjaHAsLk1IALk0MasH <46046453+AgaSpace@users.noreply.github.com> Date: Tue, 30 Nov 2021 14:36:19 +0700 Subject: [PATCH] Added comments to help other developers understand what I used and why --- TShockAPI/Bouncer.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index b8188539..2145b373 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -1096,7 +1096,15 @@ namespace TShockAPI return; } - if (TShock.Config.Settings.DisableModifiedZenith && type == ProjectileID.FinalFractal && (ai[0] < -100 || ai[0] > 101 ) && !Terraria.Graphics.FinalFractalHelper._fractalProfiles.ContainsKey((int)ai[1])) + /* + * ai - Arguments that Projectile.AI uses for easier projectile control. + * ai[0] - Distance from player (Doesn't affect the result very much) + * ai[1] - The identifier of the object that will fly. + * + * FinalFractalHelper._fractalProfiles - A list of items that must be used in Zenith. (And also their colors) + * If you add an item to this collection, it will also fly in the Zenith. (not active from server) + */ + if (TShock.Config.Settings.DisableModifiedZenith && type == ProjectileID.FinalFractal && (ai[0] < -100 || ai[0] > 101) && !Terraria.Graphics.FinalFractalHelper._fractalProfiles.ContainsKey((int)ai[1])) { TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from bouncer modified Zenith projectile from {0}.", args.Player.Name); args.Player.RemoveProjectile(ident, owner);