Code cleanup (#195)

This commit is contained in:
Kamron Batman 2020-08-16 21:46:54 -07:00 • committed by GitHub
parent b476bcfd24
commit 0926b5abaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
86 changed files with 740 additions and 1635 deletions

View file

@ -431,7 +431,7 @@ namespace Server.Engines.Quests
return false;
}
doneQuests.RemoveAt(i--);
doneQuests.RemoveAt(i);
return true;
}
}
@ -444,18 +444,7 @@ namespace Server.Engines.Quests
if (Utility.RandomBool())
who.Animate(17, 7, 1, true, false, 0);
else
switch (Utility.Random(3))
{
case 0:
who.Animate(32, 7, 1, true, false, 0);
break;
case 1:
who.Animate(33, 7, 1, true, false, 0);
break;
case 2:
who.Animate(34, 7, 1, true, false, 0);
break;
}
who.Animate(32 + Utility.Random(3), 7, 1, true, false, 0);
who.Direction = who.GetDirectionTo(to);
}