Adds metabolism effects to pretty much every chem already in the game (#5349)

* pass 1

* a little more reagent effect for breakfast

* move lots of stuff around

* implements all medicines

* implement all cleaning & elements

* implement toxins/pyrotechnic

* p

* linter fixies

* fixes + narcotic balancing

* fix and standardize

* reviews

* things
This commit is contained in:
mirrorcult
2021-11-20 16:47:53 -07:00
committed by GitHub
parent 8c64450305
commit 181fd055ce
36 changed files with 1107 additions and 532 deletions

View File

@@ -14,7 +14,6 @@ using Robust.Shared.Random;
namespace Content.Server.Body.Systems
{
// TODO mirror in the future working on mechanisms move updating here to BodySystem so it can be ordered?
[UsedImplicitly]
public class MetabolizerSystem : EntitySystem
{
@@ -156,18 +155,8 @@ namespace Content.Server.Body.Systems
// do all effects, if conditions apply
foreach (var effect in entry.Effects)
{
bool failed = false;
if (effect.Conditions != null)
{
foreach (var cond in effect.Conditions)
{
if (!cond.Condition(args))
failed = true;
}
if (failed)
continue;
}
if (!effect.ShouldApply(args, _random))
continue;
effect.Metabolize(args);
}