Added config override for stat hacks. This makes updating for 1.12 easy as well since these will change then, small part of #525
This commit is contained in:
parent
b23cdb41c3
commit
4fed645fde
3 changed files with 12 additions and 8 deletions
|
|
@ -1455,12 +1455,12 @@ namespace TShockAPI
|
|||
return (float) Math.Sqrt(num3);
|
||||
}
|
||||
|
||||
public static bool HackedHealth(TSPlayer player)
|
||||
public static bool HackedStats(TSPlayer player)
|
||||
{
|
||||
return (player.TPlayer.statManaMax > 400) ||
|
||||
(player.TPlayer.statMana > 400) ||
|
||||
(player.TPlayer.statLifeMax > 400) ||
|
||||
(player.TPlayer.statLife > 400);
|
||||
return (player.TPlayer.statManaMax > TShock.Config.MaxMana) ||
|
||||
(player.TPlayer.statMana > TShock.Config.MaxMana) ||
|
||||
(player.TPlayer.statLifeMax > TShock.Config.MaxHealth) ||
|
||||
(player.TPlayer.statLife > TShock.Config.MaxHealth);
|
||||
}
|
||||
|
||||
public static bool HackedInventory(TSPlayer player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue