Chem stuff and more (#584)
* - tweak: Ressurect meth and ephedrine. * - add: Emag fun. * - tweak: Fire bomb buff. * - fix: Uplink loc. * - tweak: Syringe.
This commit is contained in:
@@ -29,7 +29,7 @@ public abstract partial class SharedVendingMachineSystem : EntitySystem
|
||||
RestockInventoryFromPrototype(uid, component);
|
||||
}
|
||||
|
||||
public void RestockInventoryFromPrototype(EntityUid uid, VendingMachineComponent? component = null)
|
||||
public void RestockInventoryFromPrototype(EntityUid uid, VendingMachineComponent? component = null, bool restockEverything = true) // WD EDIT
|
||||
{
|
||||
if (!Resolve(uid, ref component))
|
||||
{
|
||||
@@ -40,6 +40,8 @@ public abstract partial class SharedVendingMachineSystem : EntitySystem
|
||||
return;
|
||||
|
||||
AddInventoryFromPrototype(uid, packPrototype.StartingInventory, InventoryType.Regular, component);
|
||||
if (!restockEverything) // WD
|
||||
return;
|
||||
AddInventoryFromPrototype(uid, packPrototype.EmaggedInventory, InventoryType.Emagged, component);
|
||||
AddInventoryFromPrototype(uid, packPrototype.ContrabandInventory, InventoryType.Contraband, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user