Add support for printing reagents in lathes (#30476)
* Add support for reagents in lathes * missing locale
This commit is contained in:
@@ -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[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user