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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user