Updates rest of the random list (#197)

This commit is contained in:
Kamron Batman 2020-08-22 00:23:51 -07:00 • committed by GitHub
parent 4403d6c1c7
commit 8caf5a422f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 116 additions and 79 deletions

View file

@ -599,8 +599,7 @@ namespace Server.Items
Item item = Loot.Construct(m_Types);
if (item is Key key)
key.ItemID = Utility.RandomList((int)KeyType.Copper, (int)KeyType.Gold, (int)KeyType.Iron,
(int)KeyType.Rusty);
key.ItemID = Utility.RandomList((int)KeyType.Copper, (int)KeyType.Gold, (int)KeyType.Iron, (int)KeyType.Rusty);
else if (item is Arrow || item is Bolt)
item.Amount = Utility.RandomMinMax(2, 6);
else if (item is Bandage || item is Lockpick)

View file

@ -17,10 +17,10 @@ namespace Server.Items
private string m_Name;
[Constructible]
public ParagonChest(string name, int level) : base(Utility.RandomList(m_ItemIDs))
public ParagonChest(string name, int level) : base(m_ItemIDs.RandomElement())
{
m_Name = name;
Hue = Utility.RandomList(m_Hues);
Hue = m_Hues.RandomElement();
Fill(level);
}
@ -207,4 +207,4 @@ namespace Server.Items
m_Name = Utility.Intern(reader.ReadString());
}
}
}
}