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

@ -28,9 +28,9 @@ namespace Server.Mobiles
public virtual TimeSpan MountAbilityDelay => TimeSpan.Zero;
[CommandProperty(AccessLevel.GameMaster)]
public DateTime NextMountAbility{ get; set; }
public DateTime NextMountAbility { get; set; }
protected Item InternalItem{ get; private set; }
protected Item InternalItem { get; private set; }
public virtual bool AllowMaleRider => true;
public virtual bool AllowFemaleRider => true;
@ -160,20 +160,20 @@ namespace Server.Mobiles
switch (version)
{
case 1:
{
NextMountAbility = reader.ReadDateTime();
goto case 0;
}
{
NextMountAbility = reader.ReadDateTime();
goto case 0;
}
case 0:
{
m_Rider = reader.ReadMobile();
InternalItem = reader.ReadItem();
{
m_Rider = reader.ReadMobile();
InternalItem = reader.ReadItem();
if (InternalItem == null)
Delete();
if (InternalItem == null)
Delete();
break;
}
break;
}
}
}
@ -224,8 +224,8 @@ namespace Server.Mobiles
if (from.InRange(this, 1))
{
bool canAccess = from.AccessLevel >= AccessLevel.GameMaster
|| Controlled && ControlMaster == from
|| Summoned && SummonMaster == from;
|| (Controlled && ControlMaster == from)
|| (Summoned && SummonMaster == from);
if (canAccess)
{
@ -334,14 +334,14 @@ namespace Server.Mobiles
switch (version)
{
case 0:
{
m_Mount = reader.ReadMobile() as BaseMount;
{
m_Mount = reader.ReadMobile() as BaseMount;
if (m_Mount == null)
Delete();
if (m_Mount == null)
Delete();
break;
}
break;
}
}
}
}