Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
36
Server/Notoriety.cs
Normal file
36
Server/Notoriety.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace Server
|
||||
{
|
||||
public delegate int NotorietyHandler(Mobile source, IDamageable target);
|
||||
|
||||
public static class Notoriety
|
||||
{
|
||||
public const int Innocent = 1;
|
||||
public const int Ally = 2;
|
||||
public const int CanBeAttacked = 3;
|
||||
public const int Criminal = 4;
|
||||
public const int Enemy = 5;
|
||||
public const int Murderer = 6;
|
||||
public const int Invulnerable = 7;
|
||||
|
||||
public static NotorietyHandler Handler { get; set; }
|
||||
|
||||
private static int[] m_Hues = {0x000, 0x059, 0x03F, 0x3B2, 0x3B2, 0x090, 0x022, 0x035};
|
||||
|
||||
public static int[] Hues { get { return m_Hues; } set { m_Hues = value; } }
|
||||
|
||||
public static int GetHue(int noto)
|
||||
{
|
||||
if (noto < 0 || noto >= m_Hues.Length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return m_Hues[noto];
|
||||
}
|
||||
|
||||
public static int Compute(Mobile source, IDamageable target)
|
||||
{
|
||||
return Handler == null ? CanBeAttacked : Handler(source, target);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user