From 2a8d3dd09a5575cc6e1effa902003777181f2a2c Mon Sep 17 00:00:00 2001 From: Sam Eaton Date: Sat, 8 Nov 2014 22:18:27 +0000 Subject: [PATCH] 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) {