Fix rotting examine (#12488)

* commit

* actually i think this is better
This commit is contained in:
AJCM-git
2022-11-09 12:59:15 -04:00
committed by GitHub
parent 2789dfacd5
commit c4438c7a94

View File

@@ -179,8 +179,12 @@ namespace Content.Server.Atmos.Miasma
/// </summary>
private bool IsRotting(PerishableComponent perishable, MetaDataComponent? metadata = null)
{
if (perishable.TimeOfDeath == TimeSpan.Zero)
return false;
if (_timing.CurTime >= perishable.TimeOfDeath + perishable.RotAfter + _metaDataSystem.GetPauseTime(perishable.Owner, metadata))
return true;
return false;
}