Adds blinding + blindfolds (#8688)
* Adds blinding + blindfolds * Don't break examining lol * moment * fix toggle lights behavior * move checks around * Sloth review * Added a salvage funny * review * woops * Switch circle shader Co-authored-by: wrexbe <wrexbe@protonmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Linq;
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.MobState.Components;
|
||||
using Content.Shared.Eye.Blinding;
|
||||
using Content.Shared.MobState.EntitySystems;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -98,7 +99,7 @@ namespace Content.Shared.Examine
|
||||
{
|
||||
if (MobStateSystem.IsDead(examiner, mobState))
|
||||
return DeadExamineRange;
|
||||
else if (MobStateSystem.IsCritical(examiner, mobState))
|
||||
else if (MobStateSystem.IsCritical(examiner, mobState) || (TryComp<BlindableComponent>(examiner, out var blind) && blind.Sources > 0))
|
||||
return CritExamineRange;
|
||||
}
|
||||
return ExamineRange;
|
||||
|
||||
Reference in New Issue
Block a user