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
|
|
@ -154,6 +154,12 @@ namespace TShockAPI
|
|||
[Description("Allow dropping banned items without the item being eaten.")]
|
||||
public static readonly string allowdroppingbanneditems = "tshock.ignore.dropbanneditem";
|
||||
|
||||
[Description("Prevents you from being disabled by abnormal HP.")]
|
||||
public static readonly string ignorehp = "tshock.ignore.hp";
|
||||
|
||||
[Description("Prevents you from being disabled by abnormal MP.")]
|
||||
public static readonly string ignoremp = "tshock.ignore.mp";
|
||||
|
||||
// tshock.item nodes
|
||||
|
||||
[Description("User can spawn items.")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue