Salvage Job Board (#37549)

* Salvage Job Board

* More development

* Small boy

* Computer yaml (partial)

* UI

* Rank unlock logic

* Job label printing

* appraisal tool integration

* Jobs

* add board to QM locker

* boom!

* command desc

* mild rewording

* ackh, mein pr ist brohken
This commit is contained in:
Nemanja
2025-05-18 00:02:52 -04:00
committed by GitHub
parent 93305c21df
commit 0d878751fa
45 changed files with 1239 additions and 61 deletions

View File

@@ -131,14 +131,14 @@ public sealed partial class CargoSystem
#region Station
private bool SellPallets(EntityUid gridUid, out HashSet<(EntityUid, OverrideSellComponent?, double)> goods)
private bool SellPallets(EntityUid gridUid, EntityUid station, out HashSet<(EntityUid, OverrideSellComponent?, double)> goods)
{
GetPalletGoods(gridUid, out var toSell, out goods);
if (toSell.Count == 0)
return false;
var ev = new EntitySoldEvent(toSell);
var ev = new EntitySoldEvent(toSell, station);
RaiseLocalEvent(ref ev);
foreach (var ent in toSell)
@@ -230,7 +230,7 @@ public sealed partial class CargoSystem
return;
}
if (!SellPallets(gridUid, out var goods))
if (!SellPallets(gridUid, station, out var goods))
return;
var baseDistribution = CreateAccountDistribution((station, bankAccount));
@@ -267,4 +267,4 @@ public sealed partial class CargoSystem
/// deleted but after the price has been calculated.
/// </summary>
[ByRefEvent]
public readonly record struct EntitySoldEvent(HashSet<EntityUid> Sold);
public readonly record struct EntitySoldEvent(HashSet<EntityUid> Sold, EntityUid Station);