Metabolism 3.0 (#5157)

* basic system + convert all plantmetabolism

* stragglers

* convert all old metabolisms over

* fix YAML errors + dumb serialization issue

* remove unused thingy

* reimplement

* add organ type condition

* organtype condition but real

* cleanups + test fix

* metabolismtype -> metabolizertype

* solution resilience

* fixes

* serializer + use entityuid + hashset

* this is apparently an entirely different thing

* turns out it just works

* oops
This commit is contained in:
mirrorcult
2021-11-08 15:33:45 -07:00
committed by GitHub
parent f5b11d6af8
commit 31d622f941
53 changed files with 969 additions and 912 deletions

View File

@@ -1,14 +0,0 @@
using Robust.Shared.GameObjects;
namespace Content.Shared.Botany
{
public interface IPlantMetabolizable
{
/// <summary>
/// Metabolize <paramref name="customPlantMetabolism"/> unit(s) of a reagent.
/// </summary>
/// <param name="plantHolder">Entity holding the plant</param>
/// <param name="customPlantMetabolism">Units to metabolize</param>
void Metabolize(IEntity plantHolder, float customPlantMetabolism = 1f);
}
}