Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -14,13 +14,17 @@ namespace Server.Items
Movable = false;
if (bone)
{
Hue = 1102;
}
m_AutoLock = locked;
Locked = locked;
if (locked)
{
LockLevel = -255;
}
}
public MarkContainer(Serial serial) : base(serial)
@ -36,9 +40,13 @@ namespace Server.Items
m_AutoLock = value;
if (!m_AutoLock)
{
StopTimer();
}
else if (!Locked && m_RelockTimer == null)
{
m_RelockTimer = new InternalTimer(this);
}
}
}
@ -77,7 +85,9 @@ namespace Server.Items
StopTimer();
if (!Locked)
{
m_RelockTimer = new InternalTimer(this);
}
}
}
}
@ -121,7 +131,9 @@ namespace Server.Items
var location = new Point3D(x, y, z);
if (FindMarkContainer(location, Map.Malas))
{
return;
}
var cont = new MarkContainer(bone, locked)
{
@ -182,7 +194,9 @@ namespace Server.Items
writer.Write(m_AutoLock);
if (!Locked && m_AutoLock)
{
writer.WriteDeltaTime(m_RelockTimer.RelockTime);
}
writer.Write(TargetMap);
writer.Write(Target);
@ -198,7 +212,9 @@ namespace Server.Items
m_AutoLock = reader.ReadBool();
if (!Locked && m_AutoLock)
{
m_RelockTimer = new InternalTimer(this, reader.ReadDeltaTime() - DateTime.UtcNow);
}
TargetMap = reader.ReadMap();
Target = reader.ReadPoint3D();