Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -27,7 +27,7 @@ namespace Server.Items
public override int LabelNumber => 1041080; // a message in a bottle
[CommandProperty(AccessLevel.GameMaster)]
public Map TargetMap{ get; set; }
public Map TargetMap { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public int Level
@ -38,7 +38,7 @@ namespace Server.Items
public static int GetRandomLevel()
{
if (Core.AOS && 1 > Utility.Random(25))
if (Core.AOS && Utility.Random(25) < 1)
return 4; // ancient
return Utility.RandomMinMax(1, 3);
@ -65,20 +65,20 @@ namespace Server.Items
{
case 3:
case 2:
{
m_Level = reader.ReadInt();
goto case 1;
}
{
m_Level = reader.ReadInt();
goto case 1;
}
case 1:
{
TargetMap = reader.ReadMap();
break;
}
{
TargetMap = reader.ReadMap();
break;
}
case 0:
{
TargetMap = Map.Trammel;
break;
}
{
TargetMap = Map.Trammel;
break;
}
}
if (version < 2)