New max health.
This commit is contained in:
parent
b8df312144
commit
fdf7c6ec07
2 changed files with 2 additions and 3 deletions
|
|
@ -269,9 +269,9 @@ namespace TShockAPI
|
||||||
[Description("A dictionary of REST tokens that external applications may use to make queries to your server.")]
|
[Description("A dictionary of REST tokens that external applications may use to make queries to your server.")]
|
||||||
public Dictionary<string, SecureRest.TokenData> ApplicationRestTokens = new Dictionary<string, SecureRest.TokenData>();
|
public Dictionary<string, SecureRest.TokenData> ApplicationRestTokens = new Dictionary<string, SecureRest.TokenData>();
|
||||||
|
|
||||||
[Description("The maximum value that a character may have for health.")] public int MaxHealth = 400;
|
[Description("The maximum value that a character may have for health.")] public int MaxHealth = 500;
|
||||||
|
|
||||||
[Description("The maximum value that a character may have for health.")] public int MaxMana = 400;
|
[Description("The maximum value that a character may have for health.")] public int MaxMana = 500;
|
||||||
|
|
||||||
[Description("The number of reserved slots past your max server slot that can be joined by reserved players")] public int ReservedSlots = 20;
|
[Description("The number of reserved slots past your max server slot that can be joined by reserved players")] public int ReservedSlots = 20;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1148,7 +1148,6 @@ namespace TShockAPI
|
||||||
player.TPlayer.statLifeMax = this.maxHealth;
|
player.TPlayer.statLifeMax = this.maxHealth;
|
||||||
player.TPlayer.statMana = this.mana;
|
player.TPlayer.statMana = this.mana;
|
||||||
player.TPlayer.statManaMax = this.maxMana;
|
player.TPlayer.statManaMax = this.maxMana;
|
||||||
// player.TPlayer.name = player.UserAccountName;
|
|
||||||
for (int i = 0; i < NetItem.maxNetInventory; i++)
|
for (int i = 0; i < NetItem.maxNetInventory; i++)
|
||||||
{
|
{
|
||||||
if (i < NetItem.maxNetInventory - (NetItem.armorSlots + NetItem.dyeSlots))
|
if (i < NetItem.maxNetInventory - (NetItem.armorSlots + NetItem.dyeSlots))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue