fix: Cleans up AI code (#1084)
This commit is contained in:
parent
da877f59a7
commit
38b45d5e0b
13 changed files with 4830 additions and 4632 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue