Skip to content

Commit

Permalink
real??
Browse files Browse the repository at this point in the history
  • Loading branch information
MilonPL committed Dec 5, 2024
1 parent 9a90c7f commit a25ea88
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Content.Server/DeltaV/NanoChat/NanoChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public sealed class NanoChatSystem : SharedNanoChatSystem
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly NameIdentifierSystem _name = default!;

private readonly ProtoId<NameIdentifierGroupPrototype> _nameIdentifierGroup = "GenericNumber"; // recycling
private readonly ProtoId<NameIdentifierGroupPrototype> _nameIdentifierGroup = "NanoChat";

public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<NanoChatCardComponent, ComponentInit>(OnCardInit);
SubscribeLocalEvent<NanoChatCardComponent, MapInitEvent>(OnCardInit);
SubscribeLocalEvent<NanoChatCardComponent, BeingMicrowavedEvent>(OnMicrowaved, after: [typeof(IdCardSystem)]);
}

Expand Down Expand Up @@ -117,7 +117,7 @@ private string ScrambleText(string text)
return new string(chars);
}

private void OnCardInit(Entity<NanoChatCardComponent> ent, ref ComponentInit args)
private void OnCardInit(Entity<NanoChatCardComponent> ent, ref MapInitEvent args)
{
if (ent.Comp.Number != null)
return;
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/DeltaV/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- NewsReaderCartridge
- CrimeAssistCartridge
- SecWatchCartridge
- NanoChatCartridge
- type: Pda
id: BrigmedicIDCard
state: pda-corpsman
Expand Down Expand Up @@ -58,6 +59,7 @@
- NewsReaderCartridge
- CrimeAssistCartridge
- SecWatchCartridge
- NanoChatCartridge

- type: entity
parent: BaseJusticePDA
Expand Down Expand Up @@ -186,6 +188,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- MailMetricsCartridge
- NanoChatCartridge

## Alternate Job Titles

Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/DeltaV/name_identifier_groups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# used by the nanochatcard numbers
- type: nameIdentifierGroup
id: NanoChat
maxValue: 9999
26 changes: 22 additions & 4 deletions Resources/Prototypes/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- CrewManifestCartridge
- NotekeeperCartridge
- NewsReaderCartridge
- NanoChatCartridge # DeltaV
cartridgeSlot:
priority: -1
name: device-pda-slot-component-slot-name-cartridge
Expand Down Expand Up @@ -124,13 +125,13 @@
abstract: true
components:
- type: CartridgeLoader
diskSpace: 7 # DeltaV: increase cartridge space by 2 to fit our extra cartridges
preinstalled:
- CrewManifestCartridge
- NotekeeperCartridge
- NewsReaderCartridge
- CrimeAssistCartridge # DeltaV
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand All @@ -144,6 +145,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- MedTekCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand Down Expand Up @@ -399,6 +401,7 @@
- NewsReaderCartridge
- MailMetricsCartridge # DeltaV - MailMetrics courier tracker
- StockTradingCartridge # DeltaV - StockTrading
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand All @@ -419,6 +422,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- StockTradingCartridge # DeltaV - StockTrading
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand All @@ -441,6 +445,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- AstroNavCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand Down Expand Up @@ -694,6 +699,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- GlimmerMonitorCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand All @@ -715,6 +721,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- GlimmerMonitorCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BaseSecurityPDA
Expand All @@ -738,6 +745,7 @@
- CrimeAssistCartridge # DeltaV
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- LogProbeCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BaseSecurityPDA
Expand Down Expand Up @@ -796,6 +804,7 @@
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- LogProbeCartridge
- AstroNavCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: CentcomPDA
Expand All @@ -811,14 +820,17 @@
silent: true
- type: CartridgeLoader
uiKey: enum.PdaUiKey.Key
# notificationsEnabled: false
notificationsEnabled: false
preinstalled:
- CrewManifestCartridge
- NotekeeperCartridge
# - NotekeeperCartridge # DeltaV - we're out of disk space, they dont need notes
- NewsReaderCartridge
- LogProbeCartridge
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- MedTekCartridge
- AstroNavCartridge
- StockTradingCartridge # Delta-V
- NanoChatCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: CentcomPDA
Expand Down Expand Up @@ -912,6 +924,7 @@
uiKey: enum.PdaUiKey.Key
preinstalled:
- NotekeeperCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BaseSecurityPDA
Expand Down Expand Up @@ -939,6 +952,7 @@
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- LogProbeCartridge
- AstroNavCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: ERTLeaderPDA
Expand Down Expand Up @@ -1043,6 +1057,7 @@
- NotekeeperCartridge
- NewsReaderCartridge
- StockTradingCartridge # DeltaV - StockTrading
- NanoChatCartridge # DeltaV

- type: entity
parent: BasePDA
Expand Down Expand Up @@ -1094,6 +1109,7 @@
- CrimeAssistCartridge # DeltaV
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- LogProbeCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: BaseMedicalPDA
Expand All @@ -1118,6 +1134,7 @@
- CrimeAssistCartridge # DeltaV
- SecWatchCartridge # DeltaV: SecWatch replaces WantedList
- MedTekCartridge
- NanoChatCartridge # DeltaV

- type: entity
parent: ClownPDA
Expand Down Expand Up @@ -1234,3 +1251,4 @@
preinstalled:
- NotekeeperCartridge
- MedTekCartridge
- NanoChatCartridge # DeltaV
Original file line number Diff line number Diff line change
Expand Up @@ -828,3 +828,5 @@
- NuclearOperative
- SyndicateAgent
- DV-SpareSafe # DeltaV
- type: NanoChatCard # DeltaV
notificationsMuted: true
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- NewsReaderCartridge
- CrimeAssistCartridge
- SecWatchCartridge
- NanoChatCartridge

- type: entity
parent: CourierPDA # DeltaV - Gives them the MailMetrics cartbridge
Expand Down Expand Up @@ -114,3 +115,4 @@
- NotekeeperCartridge
- NewsReaderCartridge
- GlimmerMonitorCartridge
- NanoChatCartridge

0 comments on commit a25ea88

Please sign in to comment.