Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue