Fix some comp dirty / appearance warnings (#13193)
* Fix some comp dirty / appearance warnings * also dis
This commit is contained in:
@@ -82,7 +82,7 @@ namespace Content.Shared.Eye.Blinding
|
||||
|
||||
component.IsActive = true;
|
||||
blur.Magnitude += component.VisionBonus;
|
||||
blur.Dirty();
|
||||
Dirty(blur);
|
||||
}
|
||||
|
||||
private void OnGlassesUnequipped(EntityUid uid, VisionCorrectionComponent component, GotUnequippedEvent args)
|
||||
@@ -91,7 +91,7 @@ namespace Content.Shared.Eye.Blinding
|
||||
return;
|
||||
component.IsActive = false;
|
||||
blur.Magnitude -= component.VisionBonus;
|
||||
blur.Dirty();
|
||||
Dirty(blur);
|
||||
}
|
||||
|
||||
private void OnGetState(EntityUid uid, BlurryVisionComponent component, ref ComponentGetState args)
|
||||
@@ -129,7 +129,8 @@ namespace Content.Shared.Eye.Blinding
|
||||
{
|
||||
var ev = new BlindnessChangedEvent(true);
|
||||
RaiseLocalEvent(uid, ev, false);
|
||||
} else if (blindable.Sources == 0 && oldSources > 0)
|
||||
}
|
||||
else if (blindable.Sources == 0 && oldSources > 0)
|
||||
{
|
||||
var ev = new BlindnessChangedEvent(false);
|
||||
RaiseLocalEvent(uid, ev, false);
|
||||
@@ -149,7 +150,7 @@ namespace Content.Shared.Eye.Blinding
|
||||
{
|
||||
var blurry = EnsureComp<BlurryVisionComponent>(uid);
|
||||
blurry.Magnitude = (9 - blindable.EyeDamage);
|
||||
blurry.Dirty();
|
||||
Dirty(blurry);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user