Creates random element extension (#196)
This commit is contained in:
parent
0926b5abaa
commit
4403d6c1c7
84 changed files with 226 additions and 330 deletions
|
|
@ -201,10 +201,7 @@ namespace Server.Items
|
|||
{
|
||||
int index = Utility.Random(1 + group.Entries.Length);
|
||||
|
||||
if (index == 0)
|
||||
return group.Super.Name;
|
||||
|
||||
return group.Entries[index - 1].Name;
|
||||
return index == 0 ? group.Super.Name : group.Entries[index - 1].Name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue