Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,27 +1,31 @@
namespace Server.Misc
{
public class Animations
{
public static void Initialize()
{
EventSink.AnimateRequest += EventSink_AnimateRequest;
}
public class Animations
{
public static void Initialize()
{
EventSink.AnimateRequest += EventSink_AnimateRequest;
}
private static void EventSink_AnimateRequest( AnimateRequestEventArgs e )
{
Mobile from = e.Mobile;
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
{
Mobile from = e.Mobile;
int action;
int action;
switch ( e.Action )
{
case "bow": action = 32; break;
case "salute": action = 33; break;
default: return;
}
switch (e.Action)
{
case "bow":
action = 32;
break;
case "salute":
action = 33;
break;
default: return;
}
if ( from.Alive && !from.Mounted && from.Body.IsHuman )
from.Animate( action, 5, 1, true, false, 0 );
}
}
if (from.Alive && !from.Mounted && from.Body.IsHuman)
from.Animate(action, 5, 1, true, false, 0);
}
}
}