A little better spraying of the network.
This commit is contained in:
parent
421a6b1a59
commit
88ec8a6cf5
@ -373,7 +373,7 @@ namespace EduNetworkBuilder
|
|||||||
public static int NormalRotation = 5;
|
public static int NormalRotation = 5;
|
||||||
public static int PacketDamageDistance = 25;
|
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 AllowedPasswordCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=!~@#$%^&*()_+{}[]/?<>,.";
|
||||||
public static string AllowedUsernameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890._";
|
public static string AllowedUsernameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890._";
|
||||||
|
@ -1607,7 +1607,7 @@ namespace EduNetworkBuilder
|
|||||||
if(DateTime.Now > NextSprayTime)
|
if(DateTime.Now > NextSprayTime)
|
||||||
{
|
{
|
||||||
Random myRnd = NB.GetRandom();
|
Random myRnd = NB.GetRandom();
|
||||||
int ms = (myRnd.Next(10) + 2) * 250;
|
int ms = (myRnd.Next(20) + 2) * 100;
|
||||||
NextSprayTime = DateTime.Now.AddMilliseconds(ms);
|
NextSprayTime = DateTime.Now.AddMilliseconds(ms);
|
||||||
foreach(NetworkComponent NC in NetComponents)
|
foreach(NetworkComponent NC in NetComponents)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user