Powered stasis bed prevents body decay (#23520)

* Powered stasis bed prevents body decay

* Update following CR comments

* Remove unused import

* Simplify if-statements

* Change implementation following CR suggestions

* Add comment & remove explicit get/set
This commit is contained in:
Kot
2024-01-09 10:40:52 +04:00
committed by GitHub
parent fd024cf131
commit e97fd47a87
4 changed files with 55 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ public sealed class RottingSystem : EntitySystem
var ev = new IsRottingEvent();
RaiseLocalEvent(uid, ref ev);
return ev.Handled;
return !ev.Handled;
}
public bool IsRotten(EntityUid uid, RottingComponent? rotting = null)
@@ -154,7 +154,7 @@ public sealed class RottingSystem : EntitySystem
{
if (args.Handled)
return;
args.Handled = component.CurrentTemperature > Atmospherics.T0C + 0.85f;
args.Handled = component.CurrentTemperature < Atmospherics.T0C + 0.85f;
}
public override void Update(float frameTime)