#W# Notoriety changes.
This commit is contained in:
parent
dae9b56279
commit
5f97f68763
1 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue