From 2217d63dc7c0d2d9891f77f6e6bfe9513561f753 Mon Sep 17 00:00:00 2001 From: Stargazing Koishi Date: Fri, 26 Nov 2021 06:52:30 -0800 Subject: [PATCH 1/3] Update new buffs for NPC The new TentacleSpike buff is allowed --- TShockAPI/Bouncer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 2cae6ca0..55694df4 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -2383,6 +2383,7 @@ namespace TShockAPI } // These time values are references from Projectile.cs, at npc.AddBuff() calls. + // Moved to Projectile.StatusNPC(int i). private static Dictionary NPCAddBuffTimeMax = new Dictionary() { { BuffID.Poisoned, 3600 }, // BuffID: 20 @@ -2416,7 +2417,8 @@ namespace TShockAPI { BuffID.GelBalloonBuff, 1800 }, // BuffID: 320 { BuffID.OnFire3, 360 }, // BuffID: 323 { BuffID.Frostburn2, 900 }, // BuffID: 324 - { BuffID.BoneWhipNPCDebuff, 240 } // BuffID: 326 + { BuffID.BoneWhipNPCDebuff, 240 }, // BuffID: 326 + { BuffID.TentacleSpike, 540 } // BuffID: 326 }; /// From db8d56cba75d507fc244e2f52d5aa4b40a9e3fcd Mon Sep 17 00:00:00 2001 From: Stargazing Koishi Date: Fri, 26 Nov 2021 06:54:56 -0800 Subject: [PATCH 2/3] Update BuffId typo --- TShockAPI/Bouncer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 55694df4..a2c7b7e5 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -2415,10 +2415,10 @@ namespace TShockAPI { BuffID.RainbowWhipNPCDebuff, 240 }, // BuffID: 316 { BuffID.MaceWhipNPCDebuff, 240 }, // BuffID: 319 { BuffID.GelBalloonBuff, 1800 }, // BuffID: 320 - { BuffID.OnFire3, 360 }, // BuffID: 323 - { BuffID.Frostburn2, 900 }, // BuffID: 324 - { BuffID.BoneWhipNPCDebuff, 240 }, // BuffID: 326 - { BuffID.TentacleSpike, 540 } // BuffID: 326 + { BuffID.OnFire3, 360 }, // BuffID: 323 + { BuffID.Frostburn2, 900 }, // BuffID: 324 + { BuffID.BoneWhipNPCDebuff, 240 }, // BuffID: 326 + { BuffID.TentacleSpike, 540 } // BuffID: 337 }; /// From 0437342038826f8302a490ca54a662bad8964570 Mon Sep 17 00:00:00 2001 From: Stargazing Koishi Date: Fri, 26 Nov 2021 07:00:50 -0800 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aa888dc..612de95b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Do not forget to sign every line you change with your name. (@hakusaro) * If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change. +## TShock 4.5.11 +* Add the new allowed buff TentacleSpike to NPC buff cheat detection bouncer. (@sgkoishi) + ## TShock 4.5.10 * Changed the server behavior when `SIGINT` is received. When `SIGINT` is trapped, the server will attempt to shut down safely. When it is trapped a second time in a session, it will immediately exit. (`SIGINT` is typically triggered via CTRL + C.) This means that it is possible to corrupt your world if you force shutdown at the wrong time (e.g., while the world is saving), but hopefully you expect this to happen if you hit CTRL + C twice in a session and you read the warning. (@hakusaro, @Onusai)