Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medical Dispatch POI #2451

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
300f95c
Medical Dispatch POI
dustylens Nov 24, 2024
21976ff
Remove mail metrics from MOM pda
dustylens Nov 24, 2024
f589ea9
Poster update. Always gotta have a poster.
dustylens Nov 24, 2024
5e1489b
Map orientation shift, poster update.
dustylens Nov 26, 2024
13b3473
Replaces accidentally deleted default ID card.
dustylens Nov 26, 2024
7a2dd86
Attempting to correct branch conflicts.
dustylens Nov 26, 2024
528de2f
Attempt 2 to correct conflicts.
dustylens Nov 26, 2024
5900f84
Attempt 3 - Remove posters.yml
dustylens Nov 26, 2024
f43b69e
Merge branch 'master' into NF-Dispatch-2
dustylens Nov 26, 2024
959a479
Correcting errors from upstream merge MK I
dustylens Nov 26, 2024
42fb897
Fixes to play time tracker and poster upstream merge code changes.
dustylens Nov 26, 2024
3775832
Hopefully final poster squash.
dustylens Nov 26, 2024
aed8723
*drumroll*
dustylens Nov 26, 2024
d8a647f
comma
dustylens Nov 26, 2024
9e18c2d
Fix the arbitrage spam.
dustylens Nov 26, 2024
3134c87
More arbitrage issues. Let's squash them all.
dustylens Nov 26, 2024
0744f9a
Hopefully final upstream poster issue squash. What a thrill.
dustylens Nov 26, 2024
510d64a
Removes hitchhiking contraband.yml
dustylens Nov 26, 2024
825b7e0
Merge branch 'master' into NF-Dispatch-2
dustylens Nov 26, 2024
5d073bf
Merge remote-tracking branch 'upstream/master' into NF-Dispatch-2
dustylens Nov 27, 2024
7fde208
Conflict removal.
dustylens Nov 27, 2024
d0f26e5
Ongoing conflict removals. Love it.
dustylens Nov 27, 2024
d07b5d2
New wall sign and mom guidebook update. Bank prep phase.
dustylens Nov 29, 2024
a56c503
Merge branch 'master' into NF-Dispatch-2
dustylens Nov 29, 2024
d060206
Polished guidebook update.
dustylens Nov 29, 2024
aeb9d03
Merge branch 'NF-Dispatch-2' of https://github.com/dustylens/frontier…
dustylens Nov 29, 2024
713716a
Med bank acct, ledger entries, med bounty "tax"
whatston3 Nov 29, 2024
f4d742a
Adds medical admin terminal and updates memorial graphic
dustylens Nov 29, 2024
1815b30
Merge branch 'master' into NF-Dispatch-2
dustylens Nov 29, 2024
e620e8e
Paperwork for Whatstone to say "This is fine but" after reading
dustylens Nov 29, 2024
532ff25
Straight up added a box of red/green light bulbs I don't care fight me.
dustylens Nov 30, 2024
a9aa084
Light boxes into the spawner pool. Finish your work dusty.
dustylens Dec 1, 2024
f138c26
Saloon cleanup
dustylens Dec 1, 2024
f7c8b2b
First pass fixes
dustylens Dec 1, 2024
437e6be
Merge branch 'master' into NF-Dispatch-2
dustylens Dec 1, 2024
9233991
Remove CMO kit from loadouts.
dustylens Dec 4, 2024
ce2b49a
Merge branch 'master' into NF-Dispatch-2
dustylens Dec 4, 2024
85cd79b
Merge branch 'master' of https://github.com/new-frontiers-14/frontier…
whatston3 Dec 15, 2024
9f72924
remove "whitelistRequired": "whitelisted" in job
whatston3 Dec 15, 2024
db79d04
Remove whitespace
dvir001 Dec 22, 2024
dbb51ed
Merge branch 'master' into NF-Dispatch-2
dvir001 Dec 22, 2024
bfc2934
Update general.yml
dvir001 Jan 4, 2025
83969d9
Merge branch 'master' into NF-Dispatch-2
dvir001 Jan 4, 2025
5933111
Update bar_sign.yml
dvir001 Jan 4, 2025
4e253a7
Update bar_sign.yml
dvir001 Jan 4, 2025
9970cf0
Update medical.yml
dvir001 Jan 4, 2025
4364a37
Don't just randomly delete stuff friend.
dustylens Jan 5, 2025
24403df
Merge branch 'master' into NF-Dispatch-2
dustylens Jan 9, 2025
cdf0b14
Magnus Changes
dustylens Jan 9, 2025
0167811
Lobby update.
dustylens Jan 10, 2025
fec4c7c
Strobe update.
dustylens Jan 11, 2025
9d86822
Merge branch 'master' into NF-Dispatch-2
dustylens Jan 11, 2025
58ccaf6
Magnus requests
dustylens Jan 13, 2025
8aa7661
Merge branch 'NF-Dispatch-2' of https://github.com/dustylens/frontier…
dustylens Jan 13, 2025
23b3d11
Merge branch 'master' into NF-Dispatch-2
dvir001 Jan 17, 2025
b47ffd1
Update lobby.ftl
dvir001 Jan 17, 2025
bde73da
Conflict II, son of conflict
dustylens Jan 18, 2025
5dea102
Why is this even conflicting.
dustylens Jan 18, 2025
d684e5d
Merge branch 'master' into NF-Dispatch-2
dustylens Jan 18, 2025
d40f785
mom to doc
dustylens Jan 18, 2025
f8eb263
Update Resources/Prototypes/_NF/Entities/Structures/atm.yml
dustylens Jan 18, 2025
03715ea
Update Resources/Locale/en-US/_NF/lobby/lobby.ftl
dustylens Jan 18, 2025
6d1623c
Update Resources/Prototypes/_NF/Catalog/Fills/Paper/forms_medical.yml
dustylens Jan 18, 2025
118dfd7
Update Resources/Prototypes/_NF/Entities/Objects/Devices/pda.yml
dustylens Jan 18, 2025
fb41bbd
Update Resources/Prototypes/_NF/Catalog/Fills/Paper/forms_medical.yml
dustylens Jan 18, 2025
b441875
Update Resources/Prototypes/_NF/Catalog/Fills/Paper/forms_medical.yml
dustylens Jan 18, 2025
8264045
Update Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
dustylens Jan 18, 2025
01d3f3e
More Doc catches : )
dustylens Jan 18, 2025
614c26d
Update Resources/Prototypes/_NF/Roles/Jobs/Medical/doc.yml
dustylens Jan 18, 2025
fb52beb
Update Resources/Locale/en-US/_NF/job/job-description.ftl
dustylens Jan 18, 2025
b383ed0
Update Resources/Prototypes/_NF/Loadouts/role_loadouts.yml
dustylens Jan 18, 2025
c02fa72
Update Resources/Prototypes/_NF/PointsOfInterest/medical.yml
dustylens Jan 18, 2025
084f4da
Merge branch 'master' into NF-Dispatch-2
dustylens Jan 18, 2025
6b84e85
Update Resources/Prototypes/_NF/Entities/Objects/Misc/rubber_stamp.yml
dustylens Jan 18, 2025
affdc3f
Update Resources/Prototypes/_NF/Entities/Objects/Misc/rubber_stamp.yml
dustylens Jan 18, 2025
987b37a
Adds flatpack, general cleanup.
dustylens Jan 18, 2025
8386580
Merge branch 'NF-Dispatch-2' of https://github.com/dustylens/frontier…
dustylens Jan 18, 2025
aee36ef
Merge branch 'master' into NF-Dispatch-2
dustylens Jan 18, 2025
d55fdac
F... Fix?
dustylens Jan 18, 2025
1d298d0
Merge branch 'NF-Dispatch-2' of https://github.com/dustylens/frontier…
dustylens Jan 18, 2025
d84cd07
I hate PDAs I hate PDAs I hate PDAs I hate PDAs I hate PDAs
dustylens Jan 18, 2025
9a4854c
Requested mapping changes, headset changes.
dustylens Jan 19, 2025
3dc55b0
Merge branch 'master' of https://github.com/new-frontiers-14/frontier…
whatston3 Jan 19, 2025
1654fbd
reduce optional POIs to 6, add DOC encryption key
whatston3 Jan 19, 2025
ddc06a2
Medical form tweaks, no common stamp "DO NOT MAP"
whatston3 Jan 19, 2025
b9f129d
"DirectorOfCare" caps, a million loadout changes
whatston3 Jan 19, 2025
50360a9
fallback->fallbacks
whatston3 Jan 19, 2025
c838ea0
Remove Frontier medical bounty redemption machines
whatston3 Jan 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/mapchecker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
],
"Sr": [
"ButtonFrameCautionSecurity", # Decal.
],
"Medical": [
"ButtonFrameCautionSecurity", # Decal.
]
}
15 changes: 1 addition & 14 deletions Content.Server/_NF/Bank/BankSystem.Ledger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ sealed class AccountInfo
public List<(LedgerEntryType Type, int Value)> Expenses = new();
}

static string GetAccountName(SectorBankAccount account)
{
switch (account)
{
case SectorBankAccount.Frontier:
return "Frontier Outpost";
case SectorBankAccount.Nfsd:
return "NFSD";
default:
return account.ToString();
}
}

public string GetLedgerPrintout()
{
if (!TryComp(_sectorService.GetServiceEntity(), out SectorBankComponent? ledger))
Expand Down Expand Up @@ -87,7 +74,7 @@ public string GetLedgerPrintout()
// Build our printouts
foreach (var (account, accountInfo) in accountDict)
{
builder.AppendLine(Loc.GetString("ledger-printout-account", ("account", GetAccountName(account))));
builder.AppendLine(Loc.GetString("ledger-printout-account", ("account", Loc.GetString($"ledger-tab-{account}"))));
builder.AppendLine(Loc.GetString("ledger-printout-income-header"));
foreach (var income in accountInfo.Income)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Bank.Components;
using Robust.Shared.Audio;

namespace Content.Server._NF.Medical;
Expand Down Expand Up @@ -25,4 +26,7 @@ public sealed partial class MedicalBountyRedemptionComponent : Component
/// </summary>
[DataField]
public SoundSpecifier DenySound = new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_sigh.ogg");

[DataField]
public Dictionary<SectorBankAccount, float> TaxAccounts = new();
}
9 changes: 9 additions & 0 deletions Content.Server/_NF/Medical/MedicalBountySystem.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

using System.Linq;
using Content.Server._NF.Bank;
using Content.Server._NF.Medical.Components;
using Content.Server.Body.Components;
using Content.Server.Body.Systems;
using Content.Server.Popups;
using Content.Server.Power.EntitySystems;
using Content.Server.Stack;
using Content.Server.Traits.Assorted;
using Content.Shared._NF.Bank.BUI;
using Content.Shared._NF.Medical;
using Content.Shared._NF.Medical.Prototypes;
using Content.Shared.Chemistry.Components;
Expand Down Expand Up @@ -39,6 +41,7 @@ public sealed partial class MedicalBountySystem : EntitySystem
[Dependency] UserInterfaceSystem _ui = default!;
[Dependency] PowerReceiverSystem _power = default!;
[Dependency] SharedAppearanceSystem _appearance = default!;
[Dependency] BankSystem _bank = default!;

private List<MedicalBountyPrototype> _cachedPrototypes = new();

Expand Down Expand Up @@ -175,6 +178,12 @@ private void RedeemMedicalBounty(EntityUid uid, MedicalBountyRedemptionComponent
{
// Use SpawnMultiple in case spesos ever have a limit.
_stack.SpawnMultiple("SpaceCash", bountyPayout, Transform(uid).Coordinates);

// Pay tax accounts
foreach (var (account, taxCoeff) in component.TaxAccounts)
{
_bank.TrySectorDeposit(account, (int)(bountyPayout * taxCoeff), LedgerEntryType.MedicalBountyTax);
}
}

QueueDel(bountyUid);
Expand Down
1 change: 1 addition & 0 deletions Content.Shared/Shipyard/SharedShipyardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public enum ShipyardConsoleUiKey : byte
Expedition,
Scrap,
Sr,
Medical,
// Add ships to this key if they are only available from mothership consoles. Shipyards using it are inherently empty and are populated using the ShipyardListingComponent.
Custom
}
Expand Down
1 change: 1 addition & 0 deletions Content.Shared/_NF/Bank/BUI/NFLedgerState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public enum LedgerEntryType : byte
BlackMarketShipyardTax,
BluespaceReward,
AntiSmugglingBonus,
MedicalBountyTax,
StationDepositFines,
StationDepositDonation,
StationDepositAssetsSold,
Expand Down
5 changes: 3 additions & 2 deletions Content.Shared/_NF/Bank/Components/StationBankATMComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ public enum SectorBankAccount : byte
{
Invalid, // No assigned account.
Frontier,
Nfsd
}
Nfsd,
Medical,
}
5 changes: 4 additions & 1 deletion Resources/Locale/en-US/_NF/cartridge-loader/cartridges.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ ledger-total-expenses = Total Expenses
ledger-no-expenses = None
ledger-balance = Balance:
ledger-no-balance = N/A
ledger-tab-Frontier = Frontier

ledger-tab-Frontier = Frontier Outpost
ledger-tab-Nfsd = NFSD
ledger-tab-Medical = Medical Dispatch
# Fallback, if this displays, something's wrong.
ledger-tab-Unknown = Unknown

Expand All @@ -24,6 +26,7 @@ ledger-entry-type-MailDelivered = Mail Payments
ledger-entry-type-BlackMarketAtmTax = Anon. Benefactors
ledger-entry-type-BlackMarketShipyardTax = Anon. Scrap Resale
ledger-entry-type-BluespaceReward = Guard Duty Rewards
ledger-entry-type-MedicalBountyTax = Medical Bounties
ledger-entry-type-AntiSmugglingBonus = Anti-Smuggling
ledger-entry-type-StationDepositFines = Fines Deposited
ledger-entry-type-StationDepositDonation = Donations
Expand Down
1 change: 1 addition & 0 deletions Resources/Locale/en-US/_NF/guidebook/guides.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ guide-entry-nfsd-smuggling = Smuggling
# Medical entries
guide-entry-medical-bounties = Medical Bounties
guide-entry-medical-doc = Director of Care
# Reference entries
guide-entry-medicalrecipes = Medical Recipes
Expand Down
3 changes: 2 additions & 1 deletion Resources/Locale/en-US/_NF/job/job-description.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ job-description-contractor = Fulfill any profitable contracts out on the frontie
job-description-deputy = Catch criminals and enemies of the corporation, enforce the law, and ensure that the sector does not fall into disarray.
job-description-nf-detective = Investigate crime scenes using forensic tools, ensure that the guilty party is found, and have a couple smokes.
job-description-ertmailcarrier = Nothing stops the mail.
job-description-medical-operations-manager = Provide guidance and direction for shift medics and work to safeguard the health of Nanotrasen personnel.
dustylens marked this conversation as resolved.
Show resolved Hide resolved
job-description-mercenary = Execute the bidding of anyone- for the right price. Enjoy being unbound from the confines of the law.
job-description-pilot = Pilot spaceships from point A to B, outmaneuver pirates and dodge asteroids. You are a leaf on the solar wind, let others marvel at how you soar.
job-description-pirate = Drink grog, follow orders, swab the deck, and adhere to your Captain and your code.
Expand All @@ -15,4 +16,4 @@ job-description-security-guard = Patrol the empty halls, whistle simple tunes yo
job-description-senior-officer = Teach new deputies the basics of searches, preforming arrests, prison times and how to properly shoot a firearm.
job-description-sheriff = Manage your department and keep them efficient, quell dissent, and keep the sector safe.
job-description-stc = Expertly de-conflict the space around the station and help the NFSD issue fines for overdocked ships.
job-description-sr = Handle access reassignment fairly using your ID console, manage Frontier outpost, and keep Clippy safe.
job-description-sr = Handle access reassignment fairly using your ID console, manage Frontier outpost, and keep Clippy safe.
1 change: 1 addition & 0 deletions Resources/Locale/en-US/_NF/job/job-names.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ job-name-sheriff = Sheriff
job-name-stc = Station Traffic Controller
job-name-sr = Station Representative
job-name-pal = Public Affairs Liaison
job-name-doc = Director of Care

# Job titles
job-title-ert-mail-carrier = ERT Mail Carrier
Expand Down
16 changes: 13 additions & 3 deletions Resources/Locale/en-US/_NF/lobby/lobby.ftl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
frontier-lobby-station-title = Station
frontier-lobby-station-title = Station
frontier-lobby-available-jobs = Available Jobs
frontier-lobby-no-stations-available = There are no stations available at this time.
frontier-lobby-no-crews-available = Currently there are no captains looking for crews.
frontier-lobby-station-subtext = Wake up from cryosleep to become captain, find adventure, or employed as staff onboard a station such as janitor, mail carrier, or security staff.
frontier-lobby-crew-title = Crew
frontier-lobby-crew-subtext = Start your round aboard a ship amongst a crew that is looking for new crewmembers to give them a helping hand, whether you are a new or seasoned pilot!

frontier-lobby-frontier-subtext = Main hub for many space pioneers.
frontier-lobby-frontier-description = Awaken from cryosleep here to:
- Start your own crew and become captain
Expand All @@ -13,22 +14,31 @@ frontier-lobby-frontier-description = Awaken from cryosleep here to:
- Socialize with other pioneers
Some of the roles on this station are whitelist-only and require an application in the discord to be accepted.

frontier-lobby-nfsd-subtext = The center of operations for the Sheriffs department.
frontier-lobby-exped-subtext = Where seasoned mercenaries gather.
frontier-lobby-exped-description = This is base camp for mercenaries and alike. Here you can:
- Start a mercenary crew
- Find a crew to join
- Purchase weapons and gear
- Purchase expedition-ready ships
- Socialize with other mercenaries - or not.

frontier-lobby-medical-subtext = The medical dispatch hub and search and rescue center.
frontier-lobby-medical-description = Frontier's medical dispatch hub. Here you can:
- Start or find a medical response crew
- Socialize with other medics
- Purchase medical specialist ships
- Drop off medical bounties
Some of the roles on this station are whitelist-only and require an application in the discord to be accepted.

frontier-lobby-nfsd-subtext = The center of operations for the Sheriffs department.
frontier-lobby-nfsd-description = The New Frontier Sheriff's Department is the center of operations for the Sheriffs department. Here you can:
- Join the Sheriffs department
- Apply for a bounty hunting license
- Report crimes

frontier-lobby-pirate-subtext = Where "X" marks the spot and rum never runs dry.
frontier-lobby-pirate-description = This is the ultimate hideout where scallywags and pirates gather. Here you can:
- Start a pirate crew
- Find a crew to join
- Socialize with other pirates
The roles on this station are whitelist-only and require an application in the discord to be accepted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ station-beacon-head = Head
station-beacon-atmos-nf = Atmospherics
station-beacon-atmos-burn = Burn Chamber
station-beacon-atmos-collector = Gas Collector Array
station-beacon-lobby = Lobby
station-beacon-doc-office = DoC's Office

station-beacon-eva-access = EVA Access
station-beacon-dock-one = Dock 1
Expand All @@ -33,4 +35,4 @@ station-beacon-dock-five = Dock 5
station-beacon-dock-six = Dock 6
station-beacon-dock-six-a = Dock 6a
station-beacon-dock-six-b = Dock 6b
station-beacon-dock-six-c = Dock 6c
station-beacon-dock-six-c = Dock 6c
3 changes: 2 additions & 1 deletion Resources/Locale/en-US/_NF/paper/stamp-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ stamp-component-signee-name = {$user}
stamp-component-stamped-name-doctor = Doctor
stamp-component-stamped-name-engineer = Engineer
stamp-component-stamped-name-doc = Director of Care
stamp-component-stamped-name-pal = Public Affairs Liaison
stamp-component-stamped-name-stc = Station Traffic Controller
stamp-component-stamped-name-sr = Station Representative
stamp-component-stamped-name-sr = Station Representative
Loading
Loading