Code cleanup: Dirty(Comp) (#26238)
* Replaced uses of Dirty(Component) with Dirty(Uid, Component) Modified some systems (notably pulling-related) to use uids. * Missed a few * Revert changes to pulling * No
This commit is contained in:
@@ -285,7 +285,7 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
}
|
||||
|
||||
EnsureComp<ActiveStaminaComponent>(uid);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
|
||||
if (value <= 0)
|
||||
return;
|
||||
@@ -345,7 +345,7 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
|
||||
comp.NextUpdate += TimeSpan.FromSeconds(1f);
|
||||
TakeStaminaDamage(uid, -comp.Decay, comp);
|
||||
Dirty(comp);
|
||||
Dirty(uid, comp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -368,7 +368,7 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
// Give them buffer before being able to be re-stunned
|
||||
component.NextUpdate = _timing.CurTime + component.StunTime + StamCritBufferTime;
|
||||
EnsureComp<ActiveStaminaComponent>(uid);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
_adminLogger.Add(LogType.Stamina, LogImpact.Medium, $"{ToPrettyString(uid):user} entered stamina crit");
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
component.NextUpdate = _timing.CurTime;
|
||||
SetStaminaAlert(uid, component);
|
||||
RemComp<ActiveStaminaComponent>(uid);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
_adminLogger.Add(LogType.Stamina, LogImpact.Low, $"{ToPrettyString(uid):user} recovered from stamina crit");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user