Fix rotting examine (#12488)
* commit * actually i think this is better
This commit is contained in:
@@ -179,8 +179,12 @@ namespace Content.Server.Atmos.Miasma
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private bool IsRotting(PerishableComponent perishable, MetaDataComponent? metadata = null)
|
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))
|
if (_timing.CurTime >= perishable.TimeOfDeath + perishable.RotAfter + _metaDataSystem.GetPauseTime(perishable.Owner, metadata))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user