Fixes packet length & PropertyList (#82)
This commit is contained in:
parent
1f1ceade8c
commit
27e8d823bd
20 changed files with 251 additions and 225 deletions
|
|
@ -46,14 +46,8 @@ namespace Server
|
|||
0x035
|
||||
};
|
||||
|
||||
public static int GetHue(int noto)
|
||||
{
|
||||
if (noto < 0 || noto >= Hues.Length)
|
||||
return 0;
|
||||
|
||||
return Hues[noto];
|
||||
}
|
||||
public static int GetHue(int noto) => noto < 0 || noto >= Hues.Length ? 0 : Hues[noto];
|
||||
|
||||
public static int Compute(Mobile source, Mobile target) => Handler?.Invoke(source, target) ?? CanBeAttacked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue