Order manifests for shuttle orders. Now with item names and approver info. (#9464)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Marat Gadzhiev
2022-07-09 16:48:57 +03:00
committed by GitHub
parent 59b1dfca41
commit d610f2a56c
7 changed files with 77 additions and 26 deletions

View File

@@ -154,9 +154,8 @@ namespace Content.Server.Cargo.Systems
return;
}
order.Approved = true;
_idCardSystem.TryFindIdCard(player, out var idCard);
order.Approver = idCard?.FullName ?? string.Empty;
order.SetApproverData(idCard);
SoundSystem.Play(component.ConfirmSound.GetSound(), Filter.Pvs(uid, entityManager: EntityManager), uid);
@@ -227,7 +226,7 @@ namespace Content.Server.Cargo.Systems
private CargoOrderData GetOrderData(CargoConsoleAddOrderMessage args, int index)
{
return new CargoOrderData(index, args.Requester, args.Reason, args.ProductId, args.Amount);
return new CargoOrderData(index, args.ProductId, args.Amount, args.Requester, args.Reason);
}
private int GetOrderCount(StationCargoOrderDatabaseComponent component)