Initial commit

This commit is contained in:
Ubuntu
2026-06-19 00:00:16 -04:00
commit 73701ff86e
7100 changed files with 1952988 additions and 0 deletions
+36
View 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);
}
}
}