Revert "Mind ecs" (#14881)
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Content.Server.Drone
|
||||
|
||||
private void OnExamined(EntityUid uid, DroneComponent component, ExaminedEvent args)
|
||||
{
|
||||
if (TryComp<MindContainerComponent>(uid, out var mind) && mind.HasMind)
|
||||
if (TryComp<MindComponent>(uid, out var mind) && mind.HasMind)
|
||||
{
|
||||
args.PushMarkup(Loc.GetString("drone-active"));
|
||||
}
|
||||
@@ -132,7 +132,7 @@ namespace Content.Server.Drone
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(xform.MapPosition, component.InteractionBlockRange))
|
||||
{
|
||||
// Return true if the entity is/was controlled by a player and is not a drone or ghost.
|
||||
if (HasComp<MindContainerComponent>(entity) && !HasComp<DroneComponent>(entity) && !HasComp<GhostComponent>(entity))
|
||||
if (HasComp<MindComponent>(entity) && !HasComp<DroneComponent>(entity) && !HasComp<GhostComponent>(entity))
|
||||
{
|
||||
// Filter out dead ghost roles. Dead normal players are intended to block.
|
||||
if ((TryComp<MobStateComponent>(entity, out var entityMobState) && HasComp<GhostTakeoverAvailableComponent>(entity) && _mobStateSystem.IsDead(entity, entityMobState)))
|
||||
|
||||
Reference in New Issue
Block a user