Add support for printing reagents in lathes (#30476)

* Add support for reagents in lathes

* missing locale
This commit is contained in:
Nemanja
2024-08-01 00:15:05 -04:00
committed by GitHub
parent 4b7325098a
commit 2c26be606f
17 changed files with 239 additions and 139 deletions

View File

@@ -7,7 +7,6 @@ using Content.Server.Item;
using Content.Server.Power.Components;
using Content.Shared.Administration;
using Content.Shared.Item;
using Content.Shared.Materials;
using Content.Shared.Research.Prototypes;
using Content.Shared.UserInterface;
using Content.Shared.Weapons.Melee;
@@ -224,13 +223,13 @@ public sealed class StatValuesCommand : IConsoleCommand
{
var cost = 0.0;
foreach (var (material, count) in proto.RequiredMaterials)
foreach (var (material, count) in proto.Materials)
{
var materialPrice = _proto.Index<MaterialPrototype>(material).Price;
var materialPrice = _proto.Index(material).Price;
cost += materialPrice * count;
}
var sell = priceSystem.GetEstimatedPrice(_proto.Index<EntityPrototype>(proto.Result));
var sell = priceSystem.GetLatheRecipePrice(proto);
values.Add(new[]
{