yet another orphaned items bug fix.

This commit is contained in:
xavier 2010-10-21 14:45:46 +00:00
parent 16425cc81d
commit 000ae2101f

View file

@ -47,21 +47,18 @@ namespace Server.Mobiles
if ( Core.ML && Utility.RandomDouble() < .33 ) if ( Core.ML && Utility.RandomDouble() < .33 )
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(2) ); PackItem( Engines.Plants.Seed.RandomPeculiarSeed(2) );
Item dullore = new DullCopperOre( Utility.RandomMinMax( 1, 10 ) ); Item orepile = null; /* no trust, no love :( */
dullore.ItemID = 0x19B9;
Item shadowore = new ShadowIronOre( Utility.RandomMinMax( 1, 10 ) ); switch (Utility.Random(4))
shadowore.ItemID = 0x19B9;
Item copperore = new CopperOre( Utility.RandomMinMax( 1, 10 ) );
copperore.ItemID = 0x19B9;
Item bronzeore = new BronzeOre( Utility.RandomMinMax( 1, 10 ) );
bronzeore.ItemID = 0x19B9;
switch ( Utility.Random( 4 ) )
{ {
case 0: PackItem( dullore ); break; case 0: orepile = new DullCopperOre(); break;
case 1: PackItem( shadowore ); break; case 1: orepile = new ShadowIronOre(); break;
case 2: PackItem( copperore ); break; case 2: orepile = new CopperOre(); break;
case 3: PackItem( bronzeore ); break; default: orepile = new BronzeOre(); break;
} }
orepile.Amount = Utility.RandomMinMax(1, 10);
orepile.ItemID = 0x19B9;
PackItem(orepile);
// TODO: skeleton // TODO: skeleton
} }