Консоль радио и доступы (#2203)

Co-authored-by: Vigers Ray <60344369+VigersRay@users.noreply.github.com>
This commit is contained in:
iDesmond 2025-05-27 01:52:43 +03:00 committed by GitHub
parent 67a2e97442
commit d781e0f166
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 42 additions and 16 deletions

View file

@ -379,15 +379,16 @@ namespace Content.Server.Lathe
if (!_proto.TryIndex(recipeId, out LatheRecipePrototype? recipe))
continue;
var itemName = GetRecipeName(recipe!);
recipeNames.Add(Loc.GetString("lathe-unlock-recipe-radio-broadcast-item", ("item", itemName)));
//Sunrise-Edit-Start
//var itemName = GetRecipeName(recipe!);
//recipeNames.Add(Loc.GetString("lathe-unlock-recipe-radio-broadcast-item", ("item", itemName)));
//Sunrise-Edit-End
}
if (recipeNames.Count == 0)
return;
var message =
//Sunrise-Edit-Start
/*var message =
recipeNames.Count > ent.Comp.MaximumItems ?
Loc.GetString(
"lathe-unlock-recipe-radio-broadcast-overflow",
@ -402,7 +403,8 @@ namespace Content.Server.Lathe
foreach (var channel in ent.Comp.Channels)
{
_radio.SendRadioMessage(ent.Owner, message, channel, ent.Owner, escapeMarkup: false);
}
}*/
//Sunrise-Edit-End
}
private void OnResearchRegistrationChanged(EntityUid uid, LatheComponent component, ref ResearchRegistrationChangedEvent args)

View file

@ -44,7 +44,8 @@ public sealed partial class ResearchSystem
if (!UnlockTechnology(uid, args.Id, act))
return;
if (!_emag.CheckFlag(uid, EmagType.Interaction))
//sunrise-edit-start
/*if (!_emag.CheckFlag(uid, EmagType.Interaction))
{
var getIdentityEvent = new TryGetIdentityShortInfoEvent(uid, act);
RaiseLocalEvent(getIdentityEvent);
@ -56,7 +57,8 @@ public sealed partial class ResearchSystem
("approver", getIdentityEvent.Title ?? string.Empty)
);
_radio.SendRadioMessage(uid, message, component.AnnouncementChannel, uid, escapeMarkup: false);
}
}*/
//sunrise-edit-end
SyncClientWithServer(uid);
UpdateConsoleInterface(uid, component);

View file

@ -79,6 +79,8 @@ public sealed partial class IdCardConsoleComponent : Component
"Magistrat", // Sunrise-Edit
"Barber", // Sunrise-Edit
"Mail", // Sunrise-Edit
"CargoPurchaseAccess", // Sunrise-Edit
"ResearchConsoleAccess", // Sunrise-Edit
};
[Serializable, NetSerializable]

View file

@ -4,4 +4,6 @@ id-card-access-level-ntrep = Представитель NT
id-card-access-level-magistrat = Магистрат
id-card-access-level-barber = Парикмахер
id-card-access-level-mail = Почтальйон
id-card-access-level-mining = Шахтёр
id-card-access-level-cargo-purchase-access = Снабжение: заказы
id-card-access-level-research-console-access = Науч. исследования
id-card-access-level-mining = Шахтёр

View file

@ -39,3 +39,6 @@
- BlueShieldEnsign # Sunrise-edit
- Ntrep # Sunrise-edit
- Barber # Sunrise-edit
- Mail # Sunrise-edit
- CargoPurchaseAccess # Sunrise-edit
- ResearchConsoleAccess # Sunrise-edit

View file

@ -245,7 +245,7 @@
sprite: Objects/Misc/cc-clipboard.rsi
- type: entity
id: BoxFolderQmClipboard
id: BoxFolderQmClipboard #
parent: [BoxFolderClipboard, BaseGrandTheftContraband]
name: requisition digi-board
description: A bulky electric clipboard, filled with shipping orders and financing details. With so many compromising documents, you ought to keep this safe.
@ -311,3 +311,5 @@
- HighRiskItem
- type: StealTarget
stealGroup: BoxFolderQmClipboard
- type: AccessReader #Sunrise-edit
access: [["CargoPurchaseAccess"]] #Sunrise-edit

View file

@ -486,9 +486,11 @@
state: generic_panel_open
- type: ResearchClient
- type: ResearchConsole
- type: ActiveRadio
channels:
- Science
# Sunrise-Edit-Start
#- type: ActiveRadio
# channels:
# - Science
# Sunrise-Edit-End
- type: TechnologyDatabase
- type: ActivatableUI
key: enum.ResearchConsoleUiKey.Key
@ -505,7 +507,7 @@
- type: Computer
board: ResearchComputerCircuitboard
- type: AccessReader
access: [["Research"]]
access: [["ResearchConsoleAccess"]]
- type: PointLight
radius: 1.5
energy: 1.6
@ -981,7 +983,7 @@
energy: 1.6
color: "#b89f25"
- type: AccessReader
access: [["Quartermaster"], ["HeadOfPersonnel"]] # Sunrise-Edit
access: [["CargoPurchaseAccess"]] # Sunrise-Edit
- type: DeviceNetwork
deviceNetId: Wireless
receiveFrequencyId: BasicDevice

View file

@ -23,6 +23,7 @@
access:
- Cargo
- Salvage
- CargoPurchaseAccess # Sunrise-Edit
- Quartermaster
- Maintenance
- External

View file

@ -51,6 +51,8 @@
- Brig
- Lawyer
- Cargo
- CargoPurchaseAccess # Sunrise-edit
- ResearchConsoleAccess # Sunrise-Edit
- Atmospherics
- Medical
- Barber # Sunrise-edit

View file

@ -24,6 +24,7 @@
- ResearchDirector
- Brig
- Cryogenics
- ResearchConsoleAccess # Sunrise-Edit
special:
- !type:AddImplantSpecial
implants: [ MindShieldImplant, TrackingImplant, DeathRattleImplantBlueShield ]

View file

@ -2,6 +2,10 @@
id: Mail
name: id-card-access-level-mail
- type: accessLevel
id: CargoPurchaseAccess
name: id-card-access-level-cargo-purchase-access
- type: accessLevel
id: Mining
name: id-card-access-level-mining
name: id-card-access-level-mining

View file

@ -0,0 +1,3 @@
- type: accessLevel
id: ResearchConsoleAccess
name: id-card-access-level-research-console-access