Change pricingsystem a bit (#14470)

This commit is contained in:
metalgearsloth
2023-03-24 15:27:55 +11:00
committed by GitHub
parent 303506fc38
commit 377f473ced
4 changed files with 177 additions and 76 deletions

View File

@@ -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;