Merge branch 'general-devel' of https://github.com/nyxstudios/TShock into general-devel
This commit is contained in:
commit
a99414e712
8 changed files with 44 additions and 17 deletions
|
|
@ -293,7 +293,7 @@ namespace TShockAPI
|
|||
public int MaxDamage = 175;
|
||||
|
||||
[Description("The maximum damage a projectile can inflict.")]
|
||||
public int MaxProjDamage = 175;
|
||||
public int MaxProjDamage = 1175;
|
||||
|
||||
[Description("Kicks a user if set to true, if they inflict more damage then the max damage.")]
|
||||
public bool KickOnDamageThresholdBroken = false;
|
||||
|
|
|
|||
|
|
@ -1944,9 +1944,10 @@ namespace TShockAPI
|
|||
}
|
||||
else if (action == EditAction.KillWall)
|
||||
{
|
||||
// If they aren't selecting an hammer, they're hacking.
|
||||
if (selectedItem.hammer == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0)
|
||||
// If they aren't selecting an hammer, they could be hacking.
|
||||
if (selectedItem.hammer == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0 && selectedItem.createWall == 0)
|
||||
{
|
||||
|
||||
args.Player.SendTileSquare(tileX, tileY, 1);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -2474,7 +2475,7 @@ namespace TShockAPI
|
|||
bool hasPermission = !TShock.CheckProjectilePermission(args.Player, index, type);
|
||||
if (!TShock.Config.IgnoreProjUpdate && !hasPermission && !args.Player.Group.HasPermission(Permissions.ignoreprojectiledetection))
|
||||
{
|
||||
if (type == 100 || type == 164 || type == 180 || type == 261 || (type > 289 && type < 298) || (type >= 325 && type <= 328) || (type >= 345 && type <= 352) || (type >= 435 && type <= 438))
|
||||
if (type == 622 || (type >= 638 && type <= 642) || type == 100 || type == 164 || type == 180 || type == 261 || (type > 289 && type < 298) || (type >= 325 && type <= 328) || (type >= 345 && type <= 352) || (type >= 435 && type <= 438))
|
||||
{
|
||||
TShock.Log.Debug("Certain projectiles have been ignored for cheat detection.");
|
||||
}
|
||||
|
|
@ -2778,7 +2779,7 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (flag != 0 && Main.tile[tileX, tileY].type != 21 && (!TShock.Utils.MaxChests() && Main.tile[tileX, tileY].type != 0)) //Chest
|
||||
if (flag != 0 && Main.tile[tileX, tileY].type != 21 && Main.tile[tileX, tileY].type != 88 && (!TShock.Utils.MaxChests() && Main.tile[tileX, tileY].type != 0)) //Chest
|
||||
{
|
||||
args.Player.SendTileSquare(tileX, tileY, 3);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ using System.Text;
|
|||
using System.Threading;
|
||||
using System.Timers;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using TShockAPI.DB;
|
||||
using TShockAPI.Net;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
|
@ -770,13 +771,17 @@ namespace TShockAPI
|
|||
public int ActiveChest = -1;
|
||||
public Item ItemInHand = new Item();
|
||||
|
||||
/// <summary>
|
||||
/// Disables the player for the given <paramref name="reason"/>.
|
||||
/// </summary>
|
||||
/// <param name="reason">The reason why the player was disabled.</param>
|
||||
/// <param name="displayConsole">Whether or not to log this event to the console.</param>
|
||||
public virtual void Disable(string reason = "", bool displayConsole = true)
|
||||
{
|
||||
LastThreat = DateTime.UtcNow;
|
||||
SetBuff(33, 330, true); //Weak
|
||||
SetBuff(32, 330, true); //Slow
|
||||
SetBuff(23, 330, true); //Cursed
|
||||
SetBuff(47, 330, true); //Frozen
|
||||
SetBuff(BuffID.Frozen, 330, true);
|
||||
SetBuff(BuffID.Stoned, 330, true);
|
||||
SetBuff(BuffID.Webbed, 330, true);
|
||||
|
||||
if (ActiveChest != -1)
|
||||
{
|
||||
|
|
@ -798,6 +803,7 @@ namespace TShockAPI
|
|||
LastDisableNotification = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
|
||||
var trace = new StackTrace();
|
||||
StackFrame frame = null;
|
||||
frame = trace.GetFrame(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue