Basic liver mechanism (#3424)

* Basic liver mechanism

* makes the stupid thing work
This commit is contained in:
ike709
2021-02-27 19:58:08 -06:00
committed by GitHub
parent a9a96f2edc
commit 7b3e25b3ef
5 changed files with 136 additions and 45 deletions

View File

@@ -29,6 +29,8 @@ namespace Content.Shared.Chemistry
private List<ITileReaction> _tileReactions = default!;
private List<IPlantMetabolizable> _plantMetabolism = default!;
private float _customPlantMetabolism;
private bool _toxin;
private int _boozePower;
public string ID => _id;
public string Name => _name;
@@ -36,6 +38,9 @@ namespace Content.Shared.Chemistry
public string PhysicalDescription => _physicalDescription;
public Color SubstanceColor => _substanceColor;
public bool Toxin => _toxin;
public int BoozePower => _boozePower;
//List of metabolism effects this reagent has, should really only be used server-side.
public IReadOnlyList<IMetabolizable> Metabolism => _metabolism;
public IReadOnlyList<ITileReaction> TileReactions => _tileReactions;
@@ -58,6 +63,8 @@ namespace Content.Shared.Chemistry
serializer.DataField(ref _substanceColor, "color", Color.White);
serializer.DataField(ref _spritePath, "spritePath", string.Empty);
serializer.DataField(ref _customPlantMetabolism, "customPlantMetabolism", 1f);
serializer.DataField(ref _toxin, "toxin", false);
serializer.DataField(ref _boozePower, "boozePower", 0);
if (_moduleManager.IsServerModule)
{