fix: Consolidates debug check messages for AI and adds debounce (#2235)

This commit is contained in:
Kamron Batman 2025-07-18 18:08:03 -07:00 • committed by GitHub
parent 8f88de68a7
commit f89150735e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 838 additions and 594 deletions

View file

@ -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;
}