Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 • committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -127,6 +127,7 @@ namespace Server.Gumps
switch (index)
{
default:
case 0:
type = ModelBodyType.Monsters;
list = m_Monster;
break;
@ -203,17 +204,24 @@ namespace Server.Gumps
if (((Body)bodyID).IsEmpty)
continue;
List<InternalEntry> list = oldEntry.BodyType switch
{
ModelBodyType.Monsters => m_Monster,
ModelBodyType.Animals => m_Animal,
ModelBodyType.Sea => m_Sea,
ModelBodyType.Human => m_Human,
_ => null
};
List<InternalEntry> list;
if (list == null)
return;
switch (oldEntry.BodyType)
{
default: continue;
case ModelBodyType.Monsters:
list = m_Monster;
break;
case ModelBodyType.Animals:
list = m_Animal;
break;
case ModelBodyType.Sea:
list = m_Sea;
break;
case ModelBodyType.Human:
list = m_Human;
break;
}
int itemID = ShrinkTable.Lookup(bodyID, -1);
@ -279,7 +287,7 @@ namespace Server.Gumps
int v = Name.CompareTo(comp.Name);
if (v == 0)
v = Body.CompareTo(comp.Body);
Body.CompareTo(comp.Body);
return v;
}