Creates random element extension (#196)
This commit is contained in:
parent
0926b5abaa
commit
4403d6c1c7
84 changed files with 226 additions and 330 deletions
|
|
@ -103,7 +103,7 @@ namespace Server.Engines.Craft
|
|||
if (m_Recipes.Count == 0)
|
||||
return -1;
|
||||
|
||||
return m_Recipes[Utility.Random(m_Recipes.Count)];
|
||||
return m_Recipes.RandomElement();
|
||||
}
|
||||
|
||||
public int RandomRareRecipe()
|
||||
|
|
@ -111,7 +111,7 @@ namespace Server.Engines.Craft
|
|||
if (m_RareRecipes.Count == 0)
|
||||
return -1;
|
||||
|
||||
return m_RareRecipes[Utility.Random(m_RareRecipes.Count)];
|
||||
return m_RareRecipes.RandomElement();
|
||||
}
|
||||
|
||||
public int AddCraft(Type typeItem, TextDefinition group, TextDefinition name, double minSkill, double maxSkill,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue