Custom burgers - FoodSequence system (#30755)
* setup foodsequence * name generation and max layers limit * move to nutrition * move code to serverside * move to appearance data * marked fields as required * Update foodsequence.yml * b * burgeers! * Update produce.yml * Update meat.yml * Update burger.yml * fix duplicate naming * Update Resources/Locale/en-US/nutrition/components/food-sequence.ftl Co-authored-by: Hrosts <35345601+Hrosts@users.noreply.github.com> * merge flavor profiles * make food trash List<> * merge trash * Update FoodComponent.cs * Update FoodComponent.cs * organs and cannabis support --------- Co-authored-by: Hrosts <35345601+Hrosts@users.noreply.github.com>
This commit is contained in:
@@ -48,9 +48,12 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
{
|
||||
_puddle.TrySpillAt(uid, solution, out _, false);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(foodComp.Trash))
|
||||
if (foodComp.Trash.Count == 0)
|
||||
{
|
||||
EntityManager.SpawnEntity(foodComp.Trash, Transform(uid).Coordinates);
|
||||
foreach (var trash in foodComp.Trash)
|
||||
{
|
||||
EntityManager.SpawnEntity(trash, Transform(uid).Coordinates);
|
||||
}
|
||||
}
|
||||
}
|
||||
ActivatePayload(uid);
|
||||
|
||||
Reference in New Issue
Block a user