Skip to content

Commit

Permalink
readd setter method to system
Browse files Browse the repository at this point in the history
  • Loading branch information
goet committed Sep 24, 2024
1 parent f2a7018 commit 7196c77
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Content.Server/VendingMachines/VendingMachineSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,18 @@ public void SetShooting(EntityUid uid, bool canShoot, VendingMachineComponent? c
component.CanShoot = canShoot;
}

/// <summary>
/// Sets the <see cref="VendingMachineComponent.Contraband"/> property of the vending machine.
/// </summary>
public void SetContraband(EntityUid uid, bool contraband, VendingMachineComponent? component = null)
{
if (!Resolve(uid, ref component))
return;

component.Contraband = contraband;
Dirty(uid, component);
}

public void Deny(EntityUid uid, VendingMachineComponent? vendComponent = null)
{
if (!Resolve(uid, ref vendComponent))
Expand Down

0 comments on commit 7196c77

Please sign in to comment.