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:
Aviu00
2024-08-08 09:07:40 +00:00
committed by GitHub
parent 9a9c9598e0
commit 3608960f5c
22 changed files with 111 additions and 41 deletions

View File

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