fix: Consolidates debug check messages for AI and adds debounce (#2235)
This commit is contained in:
parent
8f88de68a7
commit
f89150735e
14 changed files with 838 additions and 594 deletions
|
|
@ -2414,13 +2414,6 @@ namespace Server.Mobiles
|
|||
base.OnAfterDelete();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void DebugSay(string text)
|
||||
{
|
||||
// Moved the debug check to implementation layer so we can avoid string formatting when we do not need it
|
||||
PublicOverheadMessage(MessageType.Regular, 41, false, text);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function can be overridden.. so a "Strongest" mobile, can have a different definition depending
|
||||
* on who check for value
|
||||
|
|
@ -2498,7 +2491,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
else
|
||||
{
|
||||
DebugSay("I'm being attacked but my master told me not to fight.");
|
||||
AIObject.DebugSay("I'm being attacked but my master told me not to fight.");
|
||||
Warmode = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue