From 2a8d3dd09a5575cc6e1effa902003777181f2a2c Mon Sep 17 00:00:00 2001 From: Sam Eaton Date: Sat, 8 Nov 2014 22:18:27 +0000 Subject: [PATCH 1/2] Added npcStreamSpeed configuration parameter. --- TShockAPI/ConfigFile.cs | 3 +++ TShockAPI/TShock.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 51e909e2..d91b818b 100755 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -388,6 +388,9 @@ namespace TShockAPI [Description("The maximum allowable MP, before equipment buffs.")] 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; + /// /// Reads a configuration file from a given path /// diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index c298e091..8d1cbf72 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1763,6 +1763,7 @@ namespace TShockAPI NPC.defaultMaxSpawns = file.DefaultMaximumSpawns; NPC.defaultSpawnRate = file.DefaultSpawnRate; + Main.npcStreamSpeed = file.NpcStreamSpeed; Main.autoSave = file.AutoSave; if (Backups != null) { From 4ac6e70cc5a5baa0004fa328cbba1040e0f0067f Mon Sep 17 00:00:00 2001 From: Sam Eaton Date: Sat, 8 Nov 2014 22:36:16 +0000 Subject: [PATCH 2/2] Attempt at correcting indentation. --- TShockAPI/ConfigFile.cs | 4 ++-- TShockAPI/TShock.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index d91b818b..d7109d82 100755 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -388,8 +388,8 @@ namespace TShockAPI [Description("The maximum allowable MP, before equipment buffs.")] 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; + [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; /// /// Reads a configuration file from a given path diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 8d1cbf72..fad2ddce 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1763,7 +1763,7 @@ namespace TShockAPI NPC.defaultMaxSpawns = file.DefaultMaximumSpawns; NPC.defaultSpawnRate = file.DefaultSpawnRate; - Main.npcStreamSpeed = file.NpcStreamSpeed; + Main.npcStreamSpeed = file.NpcStreamSpeed; Main.autoSave = file.AutoSave; if (Backups != null) {