C# 9 Cleanup (#325)

- [X] Removes EventArgs - not needed
- [X] Merges sequential checks
- [X] Removes redundant type declarations
This commit is contained in:
Kamron Batman 2020-11-27 00:29:21 -08:00 • committed by GitHub
parent 351611a23a
commit 3551d962f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
417 changed files with 2209 additions and 2213 deletions

View file

@ -11,14 +11,14 @@ namespace Server.Engines.Events
private static readonly Rectangle2D[] m_PumpkinFields =
{
new Rectangle2D(4557, 1471, 20, 10),
new Rectangle2D(796, 2152, 36, 24),
new Rectangle2D(816, 2251, 16, 8),
new Rectangle2D(816, 2261, 16, 8),
new Rectangle2D(816, 2271, 16, 8),
new Rectangle2D(816, 2281, 16, 8),
new Rectangle2D(835, 2344, 16, 16),
new Rectangle2D(816, 2344, 16, 24)
new(4557, 1471, 20, 10),
new(796, 2152, 36, 24),
new(816, 2251, 16, 8),
new(816, 2261, 16, 8),
new(816, 2271, 16, 8),
new(816, 2281, 16, 8),
new(835, 2344, 16, 16),
new(816, 2344, 16, 24)
};
public static void Initialize()

View file

@ -20,23 +20,23 @@ namespace Server.Engines.Events
private static readonly Rectangle2D[] m_Cemetaries =
{
new Rectangle2D(1272, 3712, 30, 20), // Jhelom
new Rectangle2D(1337, 1444, 48, 52), // Britain
new Rectangle2D(2424, 1098, 20, 28), // Trinsic
new Rectangle2D(2728, 840, 54, 54), // Vesper
new Rectangle2D(4528, 1314, 20, 28), // Moonglow
new Rectangle2D(712, 1104, 30, 22), // Yew
new Rectangle2D(5824, 1464, 22, 6), // Fire Dungeon
new Rectangle2D(5224, 3655, 14, 5), // T2A
new(1272, 3712, 30, 20), // Jhelom
new(1337, 1444, 48, 52), // Britain
new(2424, 1098, 20, 28), // Trinsic
new(2728, 840, 54, 54), // Vesper
new(4528, 1314, 20, 28), // Moonglow
new(712, 1104, 30, 22), // Yew
new(5824, 1464, 22, 6), // Fire Dungeon
new(5224, 3655, 14, 5), // T2A
new Rectangle2D(1272, 3712, 20, 30), // Jhelom
new Rectangle2D(1337, 1444, 52, 48), // Britain
new Rectangle2D(2424, 1098, 28, 20), // Trinsic
new Rectangle2D(2728, 840, 54, 54), // Vesper
new Rectangle2D(4528, 1314, 28, 20), // Moonglow
new Rectangle2D(712, 1104, 22, 30), // Yew
new Rectangle2D(5824, 1464, 6, 22), // Fire Dungeon
new Rectangle2D(5224, 3655, 5, 14) // T2A
new(1272, 3712, 20, 30), // Jhelom
new(1337, 1444, 52, 48), // Britain
new(2424, 1098, 28, 20), // Trinsic
new(2728, 840, 54, 54), // Vesper
new(4528, 1314, 28, 20), // Moonglow
new(712, 1104, 22, 30), // Yew
new(5824, 1464, 6, 22), // Fire Dungeon
new(5224, 3655, 5, 14) // T2A
};
public static Dictionary<PlayerMobile, ZombieSkeleton> ReAnimated { get; set; }

View file

@ -31,9 +31,9 @@ namespace Server.Events.Halloween
};
public static DateTime StartHalloween // YY MM DD
=> new DateTime(2012, 10, 24);
=> new(2012, 10, 24);
public static DateTime FinishHalloween => new DateTime(2012, 11, 15);
public static DateTime FinishHalloween => new(2012, 11, 15);
public static Item RandomGMBeggerItem =>
m_GMBeggarTreats.RandomElement().CreateInstance<Item>();