A little better spraying of the network.

This commit is contained in:
Tim Young 2018-04-05 09:27:47 +03:00
parent 421a6b1a59
commit 88ec8a6cf5
2 changed files with 2 additions and 2 deletions

View File

@ -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._";

View File

@ -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)
{