ConGroups are gone. Long live admin flags in content.
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.GameObjects.Components.Movement;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.GameObjects.Components.Movement;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.AI;
|
||||
@@ -75,7 +77,7 @@ namespace Content.Server.GameObjects.EntitySystems.AI
|
||||
break;
|
||||
case false:
|
||||
_awakeAi.Add(message.Processor);
|
||||
|
||||
|
||||
if (_awakeAi.Count > cvarMaxUpdates)
|
||||
{
|
||||
Logger.Warning($"AI limit exceeded: {_awakeAi.Count} / {cvarMaxUpdates}");
|
||||
@@ -101,7 +103,7 @@ namespace Content.Server.GameObjects.EntitySystems.AI
|
||||
toRemove.Add(processor);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
processor.Update(frameTime);
|
||||
count++;
|
||||
}
|
||||
@@ -145,6 +147,7 @@ namespace Content.Server.GameObjects.EntitySystems.AI
|
||||
public bool ProcessorTypeExists(string name) => _processorTypes.ContainsKey(name);
|
||||
|
||||
|
||||
[AdminCommand(AdminFlags.Fun)]
|
||||
private class AddAiCommand : IClientCommand
|
||||
{
|
||||
public string Command => "addai";
|
||||
|
||||
Reference in New Issue
Block a user