ActionBlocker CanShiver uses EntityUid exclusively
This commit is contained in:
@@ -289,19 +289,19 @@ namespace Content.Server.Body.Respiratory
|
||||
// creadth: sweating does not help in airless environment
|
||||
if (EntitySystem.Get<AtmosphereSystem>().GetTileMixture(Owner.Transform.Coordinates) is not {})
|
||||
{
|
||||
temperatureSystem.RemoveHeat(Owner.Uid, Math.Min(targetHeat, SweatHeatRegulation), temperatureComponent);
|
||||
temperatureSystem.RemoveHeat(OwnerUid, Math.Min(targetHeat, SweatHeatRegulation), temperatureComponent);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!actionBlocker.CanShiver(Owner)) return;
|
||||
if (!actionBlocker.CanShiver(OwnerUid)) return;
|
||||
if (!_isShivering)
|
||||
{
|
||||
Owner.PopupMessage(Loc.GetString("metabolism-component-is-shivering"));
|
||||
_isShivering = true;
|
||||
}
|
||||
|
||||
temperatureSystem.ReceiveHeat(Owner.Uid, Math.Min(targetHeat, ShiveringHeatRegulation), temperatureComponent);
|
||||
temperatureSystem.ReceiveHeat(OwnerUid, Math.Min(targetHeat, ShiveringHeatRegulation), temperatureComponent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user