Cargo: pizza & bureaucracy (#5123)
* add paper label component * git mv * rename namespace * add cargo printouts * more crates * directly attach paper * comment typo
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using Content.Server.Access.Systems;
|
||||
using Content.Shared.Cargo;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Localization;
|
||||
|
||||
namespace Content.Server.Cargo
|
||||
@@ -84,7 +86,7 @@ namespace Content.Server.Cargo
|
||||
/// Approves an order in the database.
|
||||
/// </summary>
|
||||
/// <param name="order">The order to be approved.</param>
|
||||
public bool ApproveOrder(int orderNumber)
|
||||
public bool ApproveOrder(string approver, int orderNumber)
|
||||
{
|
||||
if (CurrentOrderSize == MaxOrderSize ||
|
||||
!_orders.TryGetValue(orderNumber, out var order) ||
|
||||
@@ -104,6 +106,8 @@ namespace Content.Server.Cargo
|
||||
}
|
||||
|
||||
order.Approved = true;
|
||||
order.Approver = approver;
|
||||
|
||||
CurrentOrderSize += order.Amount;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user