From 246c67a622c823cfab2bedc175145896f5acc385 Mon Sep 17 00:00:00 2001 From: Zoom L1 <46046453+AgaSpace@users.noreply.github.com> Date: Sat, 27 Nov 2021 09:34:14 +0700 Subject: [PATCH] Updated the dictionaries. --- TShockAPI/Bouncer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 980f2ebf..1679de62 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -1088,7 +1088,7 @@ namespace TShockAPI (ai[0] > Projectile_MaxValuesAI[type] || ai[0] < Projectile_MinValuesAI[type])) || (Projectile_MaxValuesAI2.ContainsKey(type) && - (ai[1] > Projectile_MaxValuesAI2[type] || ai[1] < Projectile_MaxValuesAI2[type])) + (ai[1] > Projectile_MaxValuesAI2[type] || ai[1] < Projectile_MinValuesAI2[type])) ) { TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from bouncer modified AI from {0}.", args.Player.Name); @@ -2512,18 +2512,18 @@ namespace TShockAPI { ProjectileID.PlatinumShortswordStab, ItemID.PlatinumShortsword } }; - private Dictionary Projectile_MinValuesAI = new Dictionary { + private Dictionary Projectile_MinValuesAI = new Dictionary { { 611, -1 }, { 950, 0 } }; - private Dictionary Projectile_MaxValuesAI = new Dictionary { + private Dictionary Projectile_MaxValuesAI = new Dictionary { { 611, 1 }, { 950, 0 } }; - private Dictionary Projectile_MinValuesAI2 = new Dictionary { + private Dictionary Projectile_MinValuesAI2 = new Dictionary { { 405, 0.8f }, { 410, 0.6f }, @@ -2537,7 +2537,7 @@ namespace TShockAPI { 756, 0.5f }, { 522, 0 } }; - private Dictionary Projectile_MaxValuesAI2 = new Dictionary { + private Dictionary Projectile_MaxValuesAI2 = new Dictionary { { 405, 1.2f }, { 410, 1.2f },