Updates rest of the random list (#197)
This commit is contained in:
parent
4403d6c1c7
commit
8caf5a422f
18 changed files with 116 additions and 79 deletions
|
|
@ -129,13 +129,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
// Randomize
|
||||
for (int i = 0; i < toGive.Count; ++i)
|
||||
{
|
||||
int rand = Utility.Random(toGive.Count);
|
||||
Mobile hold = toGive[i];
|
||||
toGive[i] = toGive[rand];
|
||||
toGive[rand] = hold;
|
||||
}
|
||||
toGive.Shuffle();
|
||||
|
||||
for (int i = 0; i < 6; ++i)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -248,14 +248,7 @@ namespace Server.Mobiles
|
|||
if (toGive.Count == 0)
|
||||
return;
|
||||
|
||||
// Randomize
|
||||
for (int i = 0; i < toGive.Count; ++i)
|
||||
{
|
||||
int rand = Utility.Random(toGive.Count);
|
||||
Mobile hold = toGive[i];
|
||||
toGive[i] = toGive[rand];
|
||||
toGive[rand] = hold;
|
||||
}
|
||||
toGive.Shuffle();
|
||||
|
||||
for (int i = 0; i < 16; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue