Cleanup/Housekeeping (#242)

This commit is contained in:
Kamron Batman 2020-09-12 15:31:21 -07:00 • committed by GitHub
parent 90ede0659f
commit 741e8d8300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
228 changed files with 6292 additions and 2690 deletions

View file

@ -117,7 +117,6 @@ namespace Server.Items
Use(from);
}
// Called by RunUO
public static void Initialize()
{
EventSink.OpenDoorMacroUsed += EventSink_OpenDoorMacroUsed;

View file

@ -185,9 +185,9 @@ namespace Server.Items
case MiningCartType.GemEast:
if (Gems > 0)
{
var gems = Utility.Random(15) switch
Item gems = Utility.Random(15) switch
{
0 => (Item)new Amber(),
0 => new Amber(),
1 => new Amethyst(),
2 => new Citrine(),
3 => new Diamond(),
@ -196,14 +196,14 @@ namespace Server.Items
6 => new Sapphire(),
7 => new StarSapphire(),
8 => new Tourmaline(),
// Mondain's Legacy gems
9 => new PerfectEmerald(),
10 => new DarkSapphire(),
11 => new Turquoise(),
12 => new EcruCitrine(),
13 => new FireRuby(),
14 => new BlueDiamond(),
_ => null
_ => new BlueDiamond() // 14
};
var amount = Math.Min(5, Gems);