Change pricingsystem a bit (#14470)
This commit is contained in:
@@ -25,7 +25,6 @@ namespace Content.Server.VendingMachines
|
||||
{
|
||||
public sealed class VendingMachineSystem : SharedVendingMachineSystem
|
||||
{
|
||||
[Dependency] private readonly IComponentFactory _factory = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private readonly AccessReaderSystem _accessReader = default!;
|
||||
@@ -71,7 +70,7 @@ namespace Content.Server.VendingMachines
|
||||
continue;
|
||||
}
|
||||
|
||||
price += entry.Amount * _pricing.GetEstimatedPrice(proto, _factory);
|
||||
price += entry.Amount * _pricing.GetEstimatedPrice(proto);
|
||||
}
|
||||
|
||||
args.Price += price;
|
||||
|
||||
Reference in New Issue
Block a user