#W# Notoriety changes.

This commit is contained in:
WarrentyExpired 2026-08-18 17:31:26 -04:00
parent dae9b56279
commit 5f97f68763

View file

@ -415,6 +415,24 @@ namespace Server.Misc
if( target.Criminal )
return Notoriety.Criminal;
// --- CUSTOM: WILD HOSTILE MOBS SHOW AS RED ---
if ( target is BaseCreature )
{
BaseCreature bc = (BaseCreature)target;
// If it is wild (not tamed), not a summon, and has negative Karma (hostile)
if ( target.Body.IsMonster && !bc.Controlled && !bc.Summoned && bc.Karma < 0 )
{
return Notoriety.Murderer;
}
// Defensive/Neutral: Aggressor FightMode or 0 Karma shows as Orange
if ( bc.AI != AIType.AI_Animal && ( bc.FightMode == FightMode.Aggressor || bc.Karma == 0 ) )
{
return Notoriety.Enemy;
}
}
// ---------------------------------------------
Guild sourceGuild = GetGuildFor( source.Guild as Guild, source );
Guild targetGuild = GetGuildFor( target.Guild as Guild, target );
@ -524,4 +542,4 @@ namespace Server.Misc
return false;
}
}
}
}