From: Tayrtahn Date: Fri, 4 Apr 2025 17:46:59 +0000 (-0400) Subject: Fix ninjas not being able to hack criminal records (#36299) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=6000855bb21d0ffc8449dc84ef9d9a43e33abb39;p=space-station-14.git Fix ninjas not being able to hack criminal records (#36299) Index reason placeholders prototype as a LocalizedDataset --- diff --git a/Content.Server/CriminalRecords/Systems/CriminalRecordsHackerSystem.cs b/Content.Server/CriminalRecords/Systems/CriminalRecordsHackerSystem.cs index b0181a0adc..04e08fac50 100644 --- a/Content.Server/CriminalRecords/Systems/CriminalRecordsHackerSystem.cs +++ b/Content.Server/CriminalRecords/Systems/CriminalRecordsHackerSystem.cs @@ -4,7 +4,7 @@ using Content.Server.StationRecords.Systems; using Content.Shared.CriminalRecords; using Content.Shared.CriminalRecords.Components; using Content.Shared.CriminalRecords.Systems; -using Content.Shared.Dataset; +using Content.Shared.Random.Helpers; using Content.Shared.Security; using Content.Shared.StationRecords; using Robust.Shared.Prototypes; @@ -36,10 +36,10 @@ public sealed class CriminalRecordsHackerSystem : SharedCriminalRecordsHackerSys if (_station.GetOwningStation(ent) is not {} station) return; - var reasons = _proto.Index(ent.Comp.Reasons); + var reasons = _proto.Index(ent.Comp.Reasons); foreach (var (key, record) in _records.GetRecordsOfType(station)) { - var reason = _random.Pick(reasons.Values); + var reason = _random.Pick(reasons); _criminalRecords.OverwriteStatus(new StationRecordKey(key, station), record, SecurityStatus.Wanted, reason); // no radio message since spam // no history since lazy and its easy to remove anyway