* metabolism -> respirator, add reageanteffect and reagenteffectcondition, start on metabolizercomp/system * move LiverBehavior metabolism logic to Metabolizer * minor tweaks and update all YAML * how about actually taking conditions into account * off by one * removals * reviews
20 lines
475 B
C#
20 lines
475 B
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.Body.Respiratory
|
|
{
|
|
[UsedImplicitly]
|
|
public class RespiratorSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
base.Update(frameTime);
|
|
|
|
foreach (var respirator in ComponentManager.EntityQuery<RespiratorComponent>(false))
|
|
{
|
|
respirator.Update(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|