Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 • committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -43,23 +43,13 @@ namespace Server.Mobiles
if (Core.ML && Utility.RandomDouble() < .33)
PackItem(Seed.RandomPeculiarSeed(2));
Item orepile = null; /* no trust, no love :( */
switch (Utility.Random(4))
var orepile = Utility.Random(4) switch
{
case 0:
orepile = new DullCopperOre();
break;
case 1:
orepile = new ShadowIronOre();
break;
case 2:
orepile = new CopperOre();
break;
default:
orepile = new BronzeOre();
break;
}
0 => (Item)new DullCopperOre(),
1 => new ShadowIronOre(),
2 => new CopperOre(),
_ => new BronzeOre()
};
orepile.Amount = Utility.RandomMinMax(1, 10);
orepile.ItemID = 0x19B9;