diff --git a/Scripts/Engines/ConPVP/Games/BombingRun.cs b/Scripts/Engines/ConPVP/Games/BombingRun.cs index 4a4483a7d..68a098903 100644 --- a/Scripts/Engines/ConPVP/Games/BombingRun.cs +++ b/Scripts/Engines/ConPVP/Games/BombingRun.cs @@ -356,7 +356,7 @@ namespace Server.Engines.ConPVP } private Point3DList m_Path = new Point3DList(); - private int m_PathIdx = 0; + private int m_PathIdx; private void BeginFlight( Point3D dest ) { @@ -785,7 +785,7 @@ namespace Server.Engines.ConPVP public class BRGoal : BaseAddon { - private bool m_North = false; + private bool m_North; [CommandProperty( AccessLevel.GameMaster )] public bool North { get => m_North; @@ -1531,7 +1531,7 @@ namespace Server.Engines.ConPVP private BRBomb m_Bomb; - private TimerCallback m_UnhideCallback = null; + private TimerCallback m_UnhideCallback; public void ReturnBomb() { diff --git a/Scripts/Engines/ConPVP/Games/DoubleDom.cs b/Scripts/Engines/ConPVP/Games/DoubleDom.cs index a147eb3ce..74be68c90 100644 --- a/Scripts/Engines/ConPVP/Games/DoubleDom.cs +++ b/Scripts/Engines/ConPVP/Games/DoubleDom.cs @@ -927,9 +927,9 @@ namespace Server.Engines.ConPVP } private bool m_Capturable = true; - private Timer m_CaptureTimer = null; - private Timer m_UncaptureTimer = null; - private int m_CapStage = 0; + private Timer m_CaptureTimer; + private Timer m_UncaptureTimer; + private int m_CapStage; public void Dominate( DDWayPoint point, Mobile from, DDTeamInfo team ) { diff --git a/Scripts/Engines/RemoteAdmin/RemoteAdminLogging.cs b/Scripts/Engines/RemoteAdmin/RemoteAdminLogging.cs index 9812cbf82..047863b99 100644 --- a/Scripts/Engines/RemoteAdmin/RemoteAdminLogging.cs +++ b/Scripts/Engines/RemoteAdmin/RemoteAdminLogging.cs @@ -19,7 +19,7 @@ namespace Server.RemoteAdmin public static StreamWriter Output => m_Output; - private static bool Initialized = false; + private static bool Initialized; public static void LazyInitialize() { if ( Initialized || !m_Enabled ) return; diff --git a/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs b/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs index 48d60afcd..ff77d7e5f 100644 --- a/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs +++ b/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs @@ -55,7 +55,7 @@ namespace Server.Engines.Reports private Color _fontColor; private float _graphHeight; private float _graphWidth; - private float _maxValue = 0.0f; // = final tick value * tick count + private float _maxValue; // = final tick value * tick count private float _scaleFactor; // = _maxValue / _graphHeight private float _spaceBtwBars; // For now same as _barWidth private float _topBuffer; // Space from top to the top of y axis @@ -69,7 +69,7 @@ namespace Server.Engines.Reports private bool _displayLegend; private float _legendWidth; private string _longestLabel = string.Empty; // Used to calculate legend width - private float _maxLabelWidth = 0.0f; + private float _maxLabelWidth; public string FontFamily { diff --git a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs index e9611744d..582b29f54 100644 --- a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs +++ b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs @@ -77,7 +77,7 @@ namespace Server.Misc public static Type[] LesserArtifacts => m_LesserArtifacts[(int)RewardEra-1]; - private static Type[][] m_GreaterArtifacts = null; + private static Type[][] m_GreaterArtifacts; public static Type[] GreaterArtifacts { diff --git a/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs b/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs index 2b72cc9c9..bfbe2c93a 100644 --- a/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs +++ b/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs @@ -159,7 +159,7 @@ namespace Server.Items public static StealableEntry[] Entries => m_Entries; - private static Type[] m_TypesOfEntries = null; + private static Type[] m_TypesOfEntries; public static Type[] TypesOfEntires { get diff --git a/Scripts/Items/Lights/BaseLight.cs b/Scripts/Items/Lights/BaseLight.cs index f5b9789f6..9eca51302 100644 --- a/Scripts/Items/Lights/BaseLight.cs +++ b/Scripts/Items/Lights/BaseLight.cs @@ -6,9 +6,9 @@ namespace Server.Items { private Timer m_Timer; private DateTime m_End; - private bool m_BurntOut = false; - private bool m_Burning = false; - private bool m_Protected = false; + private bool m_BurntOut; + private bool m_Burning; + private bool m_Protected; private TimeSpan m_Duration = TimeSpan.Zero; public abstract int LitItemID{ get; } diff --git a/Scripts/Items/Misc/Firebomb.cs b/Scripts/Items/Misc/Firebomb.cs index d055089a4..e56f230af 100644 --- a/Scripts/Items/Misc/Firebomb.cs +++ b/Scripts/Items/Misc/Firebomb.cs @@ -9,7 +9,7 @@ namespace Server.Items public class Firebomb : Item { private Timer m_Timer; - private int m_Ticks = 0; + private int m_Ticks; private Mobile m_LitBy; private List m_Users; diff --git a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs index c2d17ffc9..161d3d00c 100644 --- a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs +++ b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs @@ -123,8 +123,8 @@ namespace Server.Items } private Timer m_Timer; - private int m_ItemID = 0; - private int m_Count = 0; + private int m_ItemID; + private int m_Count; public void PlayMusic( Mobile m, MusicName music ) { diff --git a/Scripts/Misc/AutoRestart.cs b/Scripts/Misc/AutoRestart.cs index b09a9fdb7..43cb8c26e 100644 --- a/Scripts/Misc/AutoRestart.cs +++ b/Scripts/Misc/AutoRestart.cs @@ -5,7 +5,7 @@ namespace Server.Misc { public class AutoRestart : Timer { - public static bool Enabled = false; // is the script enabled? + public static bool Enabled; // is the script enabled? private static TimeSpan RestartTime = TimeSpan.FromHours( 2.0 ); // time of day at which to restart private static TimeSpan RestartDelay = TimeSpan.Zero; // how long the server should remain active before restart (period of 'server wars') diff --git a/Scripts/Mobiles/BaseCreature.cs b/Scripts/Mobiles/BaseCreature.cs index c7162c2ca..3c59a17db 100644 --- a/Scripts/Mobiles/BaseCreature.cs +++ b/Scripts/Mobiles/BaseCreature.cs @@ -202,17 +202,17 @@ namespace Server.Mobiles private double m_MinTameSkill; private bool m_bTamable; - private bool m_bSummoned = false; + private bool m_bSummoned; private DateTime m_SummonEnd; private int m_iControlSlots = 1; - private bool m_bBardProvoked = false; - private bool m_bBardPacified = false; - private Mobile m_bBardMaster = null; - private Mobile m_bBardTarget = null; + private bool m_bBardProvoked; + private bool m_bBardPacified; + private Mobile m_bBardMaster; + private Mobile m_bBardTarget; private DateTime m_timeBardEnd; - private WayPoint m_CurrentWayPoint = null; - private IPoint2D m_TargetLocation = null; + private WayPoint m_CurrentWayPoint; + private IPoint2D m_TargetLocation; private Mobile m_SummonMaster; @@ -4889,7 +4889,7 @@ namespace Server.Mobiles private long m_NextHealTime = Core.TickCount; private long m_NextHealOwnerTime = Core.TickCount; - private Timer m_HealTimer = null; + private Timer m_HealTimer; public bool IsHealing => ( m_HealTimer != null ); diff --git a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs index 7974d452b..463e6b853 100644 --- a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs +++ b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs @@ -9,7 +9,7 @@ namespace Server.Mobiles public override string CorpseName => "a plague beast corpse"; private int m_DevourTotal; private int m_DevourGoal; - private bool m_HasMetalChest = false; + private bool m_HasMetalChest; [CommandProperty( AccessLevel.GameMaster )] public int TotalDevoured diff --git a/Scripts/Mobiles/Special/Wanderer.cs b/Scripts/Mobiles/Special/Wanderer.cs index 901f78c72..c7bb61a43 100644 --- a/Scripts/Mobiles/Special/Wanderer.cs +++ b/Scripts/Mobiles/Special/Wanderer.cs @@ -47,7 +47,7 @@ namespace Server.Mobiles private class InternalTimer : Timer { private Wanderer m_Owner; - private int m_Count = 0; + private int m_Count; public InternalTimer( Wanderer owner ) : base( TimeSpan.FromSeconds( 0.1 ), TimeSpan.FromSeconds( 0.1 ) ) { diff --git a/Scripts/Mobiles/Townfolk/BaseEscortable.cs b/Scripts/Mobiles/Townfolk/BaseEscortable.cs index 60dd50d65..9bbac3921 100644 --- a/Scripts/Mobiles/Townfolk/BaseEscortable.cs +++ b/Scripts/Mobiles/Townfolk/BaseEscortable.cs @@ -94,7 +94,7 @@ namespace Server.Mobiles private DateTime m_DeleteTime; private Timer m_DeleteTimer; - private bool m_DeleteCorpse = false; + private bool m_DeleteCorpse; public bool IsBeingDeleted => ( m_DeleteTimer != null ); diff --git a/Server/MultiData.cs b/Server/MultiData.cs index f8e6c711c..575062e8a 100644 --- a/Server/MultiData.cs +++ b/Server/MultiData.cs @@ -150,7 +150,7 @@ namespace Server set => _PostHSFormat = value; } - private static bool _PostHSFormat = false; + private static bool _PostHSFormat; private Point2D m_Min, m_Max, m_Center; private int m_Width, m_Height; diff --git a/Server/Network/NetState.cs b/Server/Network/NetState.cs index c04c01902..861eee98a 100644 --- a/Server/Network/NetState.cs +++ b/Server/Network/NetState.cs @@ -95,7 +95,7 @@ namespace Server.Network { private AsyncState m_AsyncState; private object m_AsyncLock = new object(); - private IPacketEncoder m_Encoder = null; + private IPacketEncoder m_Encoder; public IPacketEncoder PacketEncoder { get => m_Encoder; diff --git a/Server/ObjectPropertyList.cs b/Server/ObjectPropertyList.cs index f9c6a57f2..52c4bd096 100644 --- a/Server/ObjectPropertyList.cs +++ b/Server/ObjectPropertyList.cs @@ -42,7 +42,7 @@ namespace Server set => m_HeaderArgs = value; } - private static bool m_Enabled = false; + private static bool m_Enabled; public static bool Enabled{ get => m_Enabled; set => m_Enabled = value; diff --git a/Server/Random.cs b/Server/Random.cs index c9e55a815..7b539a143 100644 --- a/Server/Random.cs +++ b/Server/Random.cs @@ -107,7 +107,7 @@ namespace Server { private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE]; - private int _Index = 0; + private int _Index; private object _sync = new object(); @@ -226,7 +226,7 @@ namespace Server { private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE]; - private int _Index = 0; + private int _Index; private object _sync = new object(); @@ -364,7 +364,7 @@ namespace Server { private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE]; - private int _Index = 0; + private int _Index; private object _sync = new object(); @@ -483,7 +483,7 @@ namespace Server { private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE]; - private int _Index = 0; + private int _Index; private object _sync = new object(); diff --git a/Server/Serialization.cs b/Server/Serialization.cs index 1227789e3..3bea7e079 100644 --- a/Server/Serialization.cs +++ b/Server/Serialization.cs @@ -1385,7 +1385,7 @@ namespace Server public sealed class AsyncWriter : GenericWriter { - private static int m_ThreadCount = 0; + private static int m_ThreadCount; public static int ThreadCount => m_ThreadCount; private int BufferSize;