fix: Cleans up AI code (#1084)

This commit is contained in:
Kamron Batman 2022-06-20 19:32:16 -07:00 • committed by GitHub
parent da877f59a7
commit 38b45d5e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 4830 additions and 4632 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Server.Collections;
using Server.ContextMenus;
using Server.Engines.ConPVP;
@ -2271,20 +2272,11 @@ namespace Server.Mobiles
base.OnAfterDelete();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void DebugSay(string text)
{
if (Debug)
{
PublicOverheadMessage(MessageType.Regular, 41, false, text);
}
}
public void DebugSay(string format, params object[] args)
{
if (Debug)
{
PublicOverheadMessage(MessageType.Regular, 41, false, string.Format(format, args));
}
// 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);
}
/*