Eye damage (#10262)
This commit is contained in:
@@ -31,14 +31,17 @@ namespace Content.Shared.Examine
|
||||
public readonly bool CenterAtCursor;
|
||||
public readonly bool OpenAtOldTooltip;
|
||||
|
||||
public readonly bool KnowTarget;
|
||||
|
||||
public ExamineInfoResponseMessage(EntityUid entityUid, FormattedMessage message, List<Verb>? verbs=null,
|
||||
bool centerAtCursor=true, bool openAtOldTooltip=true)
|
||||
bool centerAtCursor=true, bool openAtOldTooltip=true, bool knowTarget = true)
|
||||
{
|
||||
EntityUid = entityUid;
|
||||
Message = message;
|
||||
Verbs = verbs;
|
||||
CenterAtCursor = centerAtCursor;
|
||||
OpenAtOldTooltip = openAtOldTooltip;
|
||||
KnowTarget = knowTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,6 +101,12 @@ namespace Content.Shared.Examine
|
||||
return DeadExamineRange;
|
||||
else if (MobStateSystem.IsCritical(examiner, mobState) || (TryComp<BlindableComponent>(examiner, out var blind) && blind.Sources > 0))
|
||||
return CritExamineRange;
|
||||
|
||||
else if (TryComp<BlurryVisionComponent>(examiner, out var blurry) && blurry.Magnitude != 0)
|
||||
{
|
||||
float range = ExamineRange - (2 * (8 - blurry.Magnitude));
|
||||
return Math.Clamp(range, 2, 16);
|
||||
}
|
||||
}
|
||||
return ExamineRange;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user