Add permission to ignore max HP/MP, add config option for max HP/MP, possibly fix SSC
Fixing SSC is done by sending packet 39 (item disown) to the client. Until a response, which is packet 22, is received from the client, all SSC-related packets are completely ignored. This ensures that the SSC data which is sent is not dirtied due to packets which are processed during RestoreCharacter or slightly afterwards.
This commit is contained in:
parent
7a8422de5c
commit
fd5c696656
5 changed files with 56 additions and 36 deletions
|
|
@ -382,6 +382,12 @@ namespace TShockAPI
|
|||
[Description("Whether bosses or invasions should be anonymously spawned.")]
|
||||
public bool AnonymousBossInvasions = true;
|
||||
|
||||
[Description("The maximum allowable HP, before equipment buffs.")]
|
||||
public int MaxHP = 500;
|
||||
|
||||
[Description("The maximum allowable MP, before equipment buffs.")]
|
||||
public int MaxMP = 200;
|
||||
|
||||
/// <summary>
|
||||
/// Reads a configuration file from a given path
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue