Remove some unused mechanism behaviors (#5248)
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
using Content.Shared.Body.Networks;
|
|
||||||
|
|
||||||
namespace Content.Server.Body.Behavior
|
|
||||||
{
|
|
||||||
public class HeartBehavior : MechanismBehavior
|
|
||||||
{
|
|
||||||
private float _accumulatedFrameTime;
|
|
||||||
|
|
||||||
public override void Update(float frameTime)
|
|
||||||
{
|
|
||||||
// TODO BODY do between pre and metabolism
|
|
||||||
if (Parent.Body == null ||
|
|
||||||
!Parent.Body.Owner.HasComponent<SharedBloodstreamComponent>())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update at most once per second
|
|
||||||
_accumulatedFrameTime += frameTime;
|
|
||||||
|
|
||||||
// TODO: Move/accept/process bloodstream reagents only when the heart is pumping
|
|
||||||
if (_accumulatedFrameTime >= 1)
|
|
||||||
{
|
|
||||||
// bloodstream.Update(_accumulatedFrameTime);
|
|
||||||
_accumulatedFrameTime -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
using System.Linq;
|
|
||||||
using Content.Server.Body.Circulatory;
|
|
||||||
using Content.Shared.Body.Networks;
|
|
||||||
using Content.Shared.Chemistry.Reagent;
|
|
||||||
using Robust.Shared.IoC;
|
|
||||||
using Robust.Shared.Prototypes;
|
|
||||||
|
|
||||||
namespace Content.Server.Body.Behavior
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Metabolizes reagents in <see cref="SharedBloodstreamComponent"/> after they are digested.
|
|
||||||
/// </summary>
|
|
||||||
public class LiverBehavior : MechanismBehavior
|
|
||||||
{
|
|
||||||
private float _accumulatedFrameTime;
|
|
||||||
|
|
||||||
public override void Update(float frameTime)
|
|
||||||
{
|
|
||||||
if (Body == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_accumulatedFrameTime += frameTime;
|
|
||||||
|
|
||||||
// Update at most once per second
|
|
||||||
if (_accumulatedFrameTime < 1)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_accumulatedFrameTime -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -114,8 +114,6 @@
|
|||||||
- type: Mechanism
|
- type: Mechanism
|
||||||
size: 1
|
size: 1
|
||||||
compatibility: Biological
|
compatibility: Biological
|
||||||
behaviors:
|
|
||||||
- !type:HeartBehavior {}
|
|
||||||
# The heart 'metabolizes' medicines and poisons that aren't filtered out by other organs.
|
# The heart 'metabolizes' medicines and poisons that aren't filtered out by other organs.
|
||||||
# This is done because these chemicals need to have some effect even if they aren't being filtered out of your body.
|
# This is done because these chemicals need to have some effect even if they aren't being filtered out of your body.
|
||||||
# You're technically 'immune to poison' without a heart, but.. uhh, you'll have bigger problems on your hands.
|
# You're technically 'immune to poison' without a heart, but.. uhh, you'll have bigger problems on your hands.
|
||||||
|
|||||||
Reference in New Issue
Block a user