From 88ec8a6cf5d7cec0a1e20ff64520c15428df6dc6 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Thu, 5 Apr 2018 09:27:47 +0300 Subject: [PATCH] A little better spraying of the network. --- EduNetworkBuilder/NB.cs | 2 +- EduNetworkBuilder/Network.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index 6208f3b..d033c47 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -373,7 +373,7 @@ namespace EduNetworkBuilder public static int NormalRotation = 5; public static int PacketDamageDistance = 25; - public static int NumBadPackets = 3; //the number of packets to spray out + public static int NumBadPackets = 7; //the number of packets to spray out public static string AllowedPasswordCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=!~@#$%^&*()_+{}[]/?<>,."; public static string AllowedUsernameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890._"; diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 91019a0..0dea1b3 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -1607,7 +1607,7 @@ namespace EduNetworkBuilder if(DateTime.Now > NextSprayTime) { Random myRnd = NB.GetRandom(); - int ms = (myRnd.Next(10) + 2) * 250; + int ms = (myRnd.Next(20) + 2) * 100; NextSprayTime = DateTime.Now.AddMilliseconds(ms); foreach(NetworkComponent NC in NetComponents) {