make the distance microwaves and flourescent lights damage things a constant.

This commit is contained in:
Tim Young 2017-08-29 15:32:26 -05:00
parent 36654e837f
commit 2b944891e2
2 changed files with 2 additions and 1 deletions

View File

@ -319,6 +319,7 @@ namespace EduNetworkBuilder
public static int DefaultMachinePasswordLen = 20;
public static int DefaultSaltLen = 50;
public static int NormalRotation = 5;
public static int PacketDamageDistance = 25;
public static string AllowedPasswordCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=!~@#$%^&*()_+{}[]/?<>,.";
public static string AllowedUsernameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890._";

View File

@ -1518,7 +1518,7 @@ namespace EduNetworkBuilder
public bool DeviceIsOverDamaging(LinkType myLink, Point location)
{
NetworkDevice ND;
int countDistance = 25;
int countDistance = NB.PacketDamageDistance;
double HowFar;
foreach(NetworkComponent NC in NetComponents)
{