Mind ECS (#16826)
This commit is contained in:
@@ -243,7 +243,7 @@ namespace Content.Server.Medical.BiomassReclaimer
|
||||
// Reject souled bodies in easy mode.
|
||||
if (_configManager.GetCVar(CCVars.BiomassEasyMode) &&
|
||||
HasComp<HumanoidAppearanceComponent>(dragged) &&
|
||||
TryComp<MindComponent>(dragged, out var mindComp))
|
||||
TryComp<MindContainerComponent>(dragged, out var mindComp))
|
||||
{
|
||||
if (mindComp.Mind?.UserId != null && _playerManager.TryGetSessionById(mindComp.Mind.UserId.Value, out _))
|
||||
return false;
|
||||
|
||||
@@ -222,7 +222,7 @@ public sealed class DefibrillatorSystem : EntitySystem
|
||||
_mobState.ChangeMobState(target, MobState.Critical, mob, uid);
|
||||
_mobThreshold.SetAllowRevives(target, false, thresholds);
|
||||
|
||||
if (TryComp<MindComponent>(target, out var mindComp) &&
|
||||
if (TryComp<MindContainerComponent>(target, out var mindComp) &&
|
||||
mindComp.Mind?.Session is { } playerSession)
|
||||
{
|
||||
session = playerSession;
|
||||
|
||||
Reference in New Issue
Block a user