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

@@ -16,6 +16,7 @@ using Content.Shared.Whitelist;
using JetBrains.Annotations;
using Robust.Server.Containers;
using Robust.Shared.Containers;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
@@ -292,6 +293,13 @@ public sealed partial class CargoSystem
return IsBountyComplete(container, proto.Entries);
}
public bool IsBountyComplete(EntityUid container, ProtoId<CargoBountyPrototype> prototypeId)
{
var prototype = _protoMan.Index(prototypeId);
return IsBountyComplete(container, prototype.Entries);
}
public bool IsBountyComplete(EntityUid container, CargoBountyPrototype prototype)
{
return IsBountyComplete(container, prototype.Entries);
@@ -392,7 +400,9 @@ public sealed partial class CargoSystem
return false;
// todo: consider making the cargo bounties weighted.
var allBounties = _protoMan.EnumeratePrototypes<CargoBountyPrototype>().ToList();
var allBounties = _protoMan.EnumeratePrototypes<CargoBountyPrototype>()
.Where(p => p.Group == component.Group)
.ToList();
var filteredBounties = new List<CargoBountyPrototype>();
foreach (var proto in allBounties)
{