From e9372be276a79eefba10187ce6aa8a94bce35dfc Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 20 Oct 2018 09:14:38 -0700 Subject: [PATCH] Rename cheat var to detectedNPCBuffTimeCheat. --- TShockAPI/Bouncer.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index ba7c2c85..395ecc36 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -509,13 +509,13 @@ namespace TShockAPI return; } - bool cheat = false; + bool detectedNPCBuffTimeCheat = false; if (NPCAddBuffTimeMax.ContainsKey(type)) { if (time > NPCAddBuffTimeMax[type]) { - cheat = true; + detectedNPCBuffTimeCheat = true; } if (npc.townNPC && npc.netID != NPCID.Guide && npc.netID != NPCID.Clothier) @@ -523,18 +523,18 @@ namespace TShockAPI if (type != BuffID.Lovestruck && type != BuffID.Stinky && type != BuffID.DryadsWard && type != BuffID.Wet && type != BuffID.Slimed) { - cheat = true; + detectedNPCBuffTimeCheat = true; } } } else { - cheat = true; + detectedNPCBuffTimeCheat = true; } - if (cheat) + if (detectedNPCBuffTimeCheat) { - args.Player.Disable("Add buff to NPC abnormally.", DisableFlags.WriteToLogAndConsole); + args.Player.Disable("Added buff to NPC abnormally.", DisableFlags.WriteToLogAndConsole); args.Handled = true; } }