Added npcStreamSpeed configuration parameter.
This commit is contained in:
parent
5ffd373083
commit
2a8d3dd09a
2 changed files with 4 additions and 0 deletions
|
|
@ -388,6 +388,9 @@ namespace TShockAPI
|
||||||
[Description("The maximum allowable MP, before equipment buffs.")]
|
[Description("The maximum allowable MP, before equipment buffs.")]
|
||||||
public int MaxMP = 200;
|
public int MaxMP = 200;
|
||||||
|
|
||||||
|
[Description("Reduces enemy skipping but increases bandwidth usage. The lower the number the less skipping will happen, but more data is sent. 0 is off.")]
|
||||||
|
public int NpcStreamSpeed = 60;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a configuration file from a given path
|
/// Reads a configuration file from a given path
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1763,6 +1763,7 @@ namespace TShockAPI
|
||||||
NPC.defaultMaxSpawns = file.DefaultMaximumSpawns;
|
NPC.defaultMaxSpawns = file.DefaultMaximumSpawns;
|
||||||
NPC.defaultSpawnRate = file.DefaultSpawnRate;
|
NPC.defaultSpawnRate = file.DefaultSpawnRate;
|
||||||
|
|
||||||
|
Main.npcStreamSpeed = file.NpcStreamSpeed;
|
||||||
Main.autoSave = file.AutoSave;
|
Main.autoSave = file.AutoSave;
|
||||||
if (Backups != null)
|
if (Backups != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue