Merge branch 'journeymode_permissions' of https://github.com/Pryaxis/TShock into journeymode_permissions
This commit is contained in:
commit
9a8c2fee0d
4 changed files with 31 additions and 19 deletions
|
|
@ -11,8 +11,11 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
and lava, wet, honey, and dry grenades;
|
and lava, wet, honey, and dry grenades;
|
||||||
and lava, wet, honey, and dry rockets;
|
and lava, wet, honey, and dry rockets;
|
||||||
and lava, wet, honey, and dry mines. (@Olink)
|
and lava, wet, honey, and dry mines. (@Olink)
|
||||||
|
* Fix Bloody Tear displaying the wrong text when used. (@Olink)
|
||||||
|
* Fix the visibility toggle for the last two accessory slots. (@Olink)
|
||||||
* Adding Journey mode user account permissions. (@Patrikkk)
|
* Adding Journey mode user account permissions. (@Patrikkk)
|
||||||
|
|
||||||
|
|
||||||
## TShock 4.4.0 (Pre-release 7 (Entangled))
|
## TShock 4.4.0 (Pre-release 7 (Entangled))
|
||||||
* Fixed bed spawn issues when trying to remove spawn point in SSC. (@Olink)
|
* Fixed bed spawn issues when trying to remove spawn point in SSC. (@Olink)
|
||||||
* Fixed Snake Flute. (@Olink)
|
* Fixed Snake Flute. (@Olink)
|
||||||
|
|
|
||||||
|
|
@ -527,7 +527,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
if (args.Player.HasPermission(Permissions.allowclientsideworldedit))
|
if (args.Player.HasPermission(Permissions.allowclientsideworldedit))
|
||||||
{
|
{
|
||||||
TShock.Log.ConsoleDebug("Bouncer / SendTileSquare rejected clientside world edit from {0}", args.Player.Name);
|
TShock.Log.ConsoleDebug("Bouncer / SendTileSquare accepted clientside world edit from {0}", args.Player.Name);
|
||||||
args.Handled = false;
|
args.Handled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -275,11 +275,11 @@ namespace TShockAPI
|
||||||
|
|
||||||
/// <summary>Disables a player and reverts their actions if this number of tile places is exceeded within 1 second.</summary>
|
/// <summary>Disables a player and reverts their actions if this number of tile places is exceeded within 1 second.</summary>
|
||||||
[Description("Disables a player and reverts their actions if this number of tile places is exceeded within 1 second.")]
|
[Description("Disables a player and reverts their actions if this number of tile places is exceeded within 1 second.")]
|
||||||
public int TilePlaceThreshold = 20;
|
public int TilePlaceThreshold = 32;
|
||||||
|
|
||||||
/// <summary>Disables a player if this number of liquid sets is exceeded within 1 second.</summary>
|
/// <summary>Disables a player if this number of liquid sets is exceeded within 1 second.</summary>
|
||||||
[Description("Disables a player if this number of liquid sets is exceeded within 1 second.")]
|
[Description("Disables a player if this number of liquid sets is exceeded within 1 second.")]
|
||||||
public int TileLiquidThreshold = 15;
|
public int TileLiquidThreshold = 50;
|
||||||
|
|
||||||
/// <summary>Disable a player if this number of projectiles is created within 1 second.</summary>
|
/// <summary>Disable a player if this number of projectiles is created within 1 second.</summary>
|
||||||
[Description("Disable a player if this number of projectiles is created within 1 second.")]
|
[Description("Disable a player if this number of projectiles is created within 1 second.")]
|
||||||
|
|
|
||||||
|
|
@ -1923,11 +1923,14 @@ namespace TShockAPI
|
||||||
args.Player.TPlayer.shirtColor = shirtColor;
|
args.Player.TPlayer.shirtColor = shirtColor;
|
||||||
args.Player.TPlayer.underShirtColor = underShirtColor;
|
args.Player.TPlayer.underShirtColor = underShirtColor;
|
||||||
args.Player.TPlayer.shoeColor = shoeColor;
|
args.Player.TPlayer.shoeColor = shoeColor;
|
||||||
|
//@Olink: If you need to change bool[10], please make sure you also update the for loops below to account for it.
|
||||||
|
//There are two arrays from terraria that we only have a single array for. You will need to make sure that you are looking
|
||||||
|
//at the correct terraria array (hideVisual or hideVisual2).
|
||||||
args.Player.TPlayer.hideVisibleAccessory = new bool[10];
|
args.Player.TPlayer.hideVisibleAccessory = new bool[10];
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
args.Player.TPlayer.hideVisibleAccessory[i] = hideVisual[i];
|
args.Player.TPlayer.hideVisibleAccessory[i] = hideVisual[i];
|
||||||
for (int i = 8; i < 10; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
args.Player.TPlayer.hideVisibleAccessory[i] = hideVisual2[i];
|
args.Player.TPlayer.hideVisibleAccessory[i+8] = hideVisual2[i];
|
||||||
args.Player.TPlayer.hideMisc = hideMisc;
|
args.Player.TPlayer.hideMisc = hideMisc;
|
||||||
args.Player.TPlayer.extraAccessory = extraSlot;
|
args.Player.TPlayer.extraAccessory = extraSlot;
|
||||||
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, args.Player.Index, NetworkText.FromLiteral(args.Player.Name), args.Player.Index);
|
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, args.Player.Index, NetworkText.FromLiteral(args.Player.Name), args.Player.Index);
|
||||||
|
|
@ -2850,38 +2853,44 @@ namespace TShockAPI
|
||||||
string thing;
|
string thing;
|
||||||
switch (thingType)
|
switch (thingType)
|
||||||
{
|
{
|
||||||
|
case -11:
|
||||||
|
thing = "applied advanced combat techniques";
|
||||||
|
break;
|
||||||
|
case -10:
|
||||||
|
thing = "summoned a Blood Moon";
|
||||||
|
break;
|
||||||
case -8:
|
case -8:
|
||||||
thing = "a Moon Lord";
|
thing = "summoned a Moon Lord";
|
||||||
break;
|
break;
|
||||||
case -7:
|
case -7:
|
||||||
thing = "a Martian invasion";
|
thing = "summoned a Martian invasion";
|
||||||
break;
|
break;
|
||||||
case -6:
|
case -6:
|
||||||
thing = "an eclipse";
|
thing = "summoned an eclipse";
|
||||||
break;
|
break;
|
||||||
case -5:
|
case -5:
|
||||||
thing = "a frost moon";
|
thing = "summoned a frost moon";
|
||||||
break;
|
break;
|
||||||
case -4:
|
case -4:
|
||||||
thing = "a pumpkin moon";
|
thing = "summoned a pumpkin moon";
|
||||||
break;
|
break;
|
||||||
case -3:
|
case -3:
|
||||||
thing = "the Pirates";
|
thing = "summoned the Pirates";
|
||||||
break;
|
break;
|
||||||
case -2:
|
case -2:
|
||||||
thing = "the Snow Legion";
|
thing = "summoned the Snow Legion";
|
||||||
break;
|
break;
|
||||||
case -1:
|
case -1:
|
||||||
thing = "a Goblin Invasion";
|
thing = "summoned a Goblin Invasion";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
thing = String.Format("the {0}", npc.FullName);
|
thing = String.Format("summoned the {0}", npc.FullName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (TShock.Config.AnonymousBossInvasions)
|
if (TShock.Config.AnonymousBossInvasions)
|
||||||
TShock.Utils.SendLogs(string.Format("{0} summoned {1}!", args.Player.Name, thing), Color.PaleVioletRed, args.Player);
|
TShock.Utils.SendLogs(string.Format("{0} {1}!", args.Player.Name, thing), Color.PaleVioletRed, args.Player);
|
||||||
else
|
else
|
||||||
TShock.Utils.Broadcast(String.Format("{0} summoned {1}!", args.Player.Name, thing), 175, 75, 255);
|
TShock.Utils.Broadcast(String.Format("{0} {1}!", args.Player.Name, thing), 175, 75, 255);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue