Change pricingsystem a bit (#14470)
This commit is contained in:
@@ -154,7 +154,6 @@ public sealed class StatValuesCommand : IConsoleCommand
|
||||
{
|
||||
var values = new List<string[]>();
|
||||
var protoManager = IoCManager.Resolve<IPrototypeManager>();
|
||||
var factory = IoCManager.Resolve<IComponentFactory>();
|
||||
var priceSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<PricingSystem>();
|
||||
|
||||
foreach (var proto in protoManager.EnumeratePrototypes<LatheRecipePrototype>())
|
||||
@@ -167,7 +166,7 @@ public sealed class StatValuesCommand : IConsoleCommand
|
||||
cost += materialPrice * count;
|
||||
}
|
||||
|
||||
var sell = priceSystem.GetEstimatedPrice(protoManager.Index<EntityPrototype>(proto.Result), factory);
|
||||
var sell = priceSystem.GetEstimatedPrice(protoManager.Index<EntityPrototype>(proto.Result));
|
||||
|
||||
values.Add(new[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user