-
Notifications
You must be signed in to change notification settings - Fork 154
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
[PORT] настольные компьютеры залетают в игру! #1046
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
|
||
namespace Content.Server.Construction.Components | ||
{ | ||
/// <summary> | ||
/// Used for construction graphs in building tabletop computers. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class ComputerTabletopBoardComponent : Component | ||
{ | ||
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))] | ||
public string? Prototype { get; private set; } | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ | |
state: cpu_engineering | ||
- type: ComputerBoard | ||
prototype: ComputerAtmosMonitoring | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopAlert # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -50,6 +52,8 @@ | |
state: cpu_engineering | ||
- type: ComputerBoard | ||
prototype: ComputerPowerMonitoring | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopPowerMonitoring # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -61,6 +65,8 @@ | |
state: cpu_medical | ||
- type: ComputerBoard | ||
prototype: ComputerMedicalRecords | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopMedicalRecords # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -72,6 +78,8 @@ | |
state: cpu_security | ||
- type: ComputerBoard | ||
prototype: ComputerCriminalRecords | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCriminalRecords # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -83,6 +91,8 @@ | |
state: cpu_command | ||
- type: ComputerBoard | ||
prototype: ComputerStationRecords | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopStationRecords # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -108,6 +118,8 @@ | |
- type: ComputerBoard | ||
prototype: ComputerPalletConsole | ||
|
||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoOrders # Frontier | ||
- type: entity | ||
id: CargoBountyComputerCircuitboard | ||
parent: BaseComputerCircuitboard | ||
|
@@ -119,6 +131,8 @@ | |
- type: ComputerBoard | ||
prototype: ComputerCargoBounty | ||
- type: StaticPrice | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -131,6 +145,8 @@ | |
state: cpu_supply | ||
- type: ComputerBoard | ||
prototype: ComputerCargoShuttle | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -144,6 +160,8 @@ | |
prototype: ComputerSalvageExpedition | ||
- type: StealTarget | ||
stealGroup: SalvageExpeditionsComputerCircuitboard | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopSalvageExpedition # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -157,6 +175,8 @@ | |
prototype: ComputerShuttleCargo | ||
- type: StealTarget | ||
stealGroup: CargoShuttleConsoleCircuitboard | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -171,6 +191,8 @@ | |
- type: Tag | ||
tags: | ||
- SurveillanceCameraMonitorCircuitboard | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -182,6 +204,8 @@ | |
state: cpu_security | ||
- type: ComputerBoard | ||
prototype: ComputerSurveillanceWirelessCameraMonitor | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -194,6 +218,8 @@ | |
- type: Tag | ||
tags: | ||
- ComputerTelevisionCircuitboard | ||
# - type: ComputerTabletopBoard # Frontier | ||
# prototype: ComputerTabletopTelevision # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -205,6 +231,8 @@ | |
state: cpu_science | ||
- type: ComputerBoard | ||
prototype: ComputerResearchAndDevelopment | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopResearchAndDevelopment # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -216,6 +244,8 @@ | |
state: cpu_science | ||
- type: ComputerBoard | ||
prototype: ComputerAnalysisConsole | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopAnalysisConsole # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -227,6 +257,8 @@ | |
state: cpu_science | ||
- type: ComputerBoard | ||
prototype: ComputerTechnologyDiskTerminal | ||
# - type: ComputerTabletopBoard # Frontier | ||
# prototype: ComputerTabletopTechnologyDiskTerminal # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -238,6 +270,8 @@ | |
state: cpu_medical | ||
- type: ComputerBoard | ||
prototype: ComputerCrewMonitoring | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: [BaseComputerCircuitboard, BaseGrandTheftContraband] | ||
|
@@ -254,6 +288,8 @@ | |
- type: Tag | ||
tags: | ||
- HighRiskItem | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopId # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -265,6 +301,8 @@ | |
state: cpu_medical | ||
- type: ComputerBoard | ||
prototype: computerBodyScanner | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopBodyScanner # Frontier | ||
|
||
- type: entity | ||
parent: [ BaseComputerCircuitboard, BaseGrandTheftContraband ] | ||
|
@@ -276,6 +314,8 @@ | |
state: cpu_command | ||
- type: ComputerBoard | ||
prototype: ComputerComms | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopComms # Frontier | ||
|
||
- type: entity | ||
parent: [ BaseComputerCircuitboard, BaseSyndicateContraband ] | ||
|
@@ -287,6 +327,8 @@ | |
state: cpu_syndicate | ||
- type: ComputerBoard | ||
prototype: SyndicateComputerComms | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -297,6 +339,8 @@ | |
state: cpu_supply | ||
- type: ComputerBoard | ||
prototype: ComputerRadar | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopRadar # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -308,6 +352,8 @@ | |
state: cpu_engineering | ||
- type: ComputerBoard | ||
prototype: ComputerSolarControl | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopSolarControl # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -317,6 +363,8 @@ | |
components: | ||
- type: ComputerBoard | ||
prototype: SpaceVillainArcade | ||
# - type: ComputerTabletopBoard # Frontier | ||
# prototype: TabletopSpaceVillainArcade # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -326,6 +374,8 @@ | |
components: | ||
- type: ComputerBoard | ||
prototype: BlockGameArcade | ||
# - type: ComputerTabletopBoard # Frontier | ||
# prototype: TabletopBlockGameArcade # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -337,6 +387,8 @@ | |
state: cpu_engineering | ||
- type: ComputerBoard | ||
prototype: ParticleAcceleratorControlBoxUnfinished | ||
# - type: ComputerTabletopBoard # Frontier | ||
# prototype: ParticleAcceleratorControlBoxTabletopUnfinished # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -348,6 +400,8 @@ | |
state: cpu_supply | ||
- type: ComputerBoard | ||
prototype: ComputerShuttle | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -370,6 +424,8 @@ | |
state: cpu_medical | ||
- type: ComputerBoard | ||
prototype: ComputerCloningConsole | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCloningConsole # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -381,6 +437,8 @@ | |
state: cpu_command | ||
- type: ComputerBoard | ||
prototype: ComputerIFF | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -392,6 +450,8 @@ | |
state: cpu_syndicate | ||
- type: ComputerBoard | ||
prototype: ComputerIFFSyndicate | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -405,6 +465,8 @@ | |
price: 100 | ||
- type: ComputerBoard | ||
prototype: ComputerMassMedia | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopMassMedia # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -416,6 +478,8 @@ | |
state: cpu_engineering | ||
- type: ComputerBoard | ||
prototype: ComputerSensorMonitoring | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopSensorMonitoring # Frontier | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте отсутствующий прототип ComputerTabletopSensorMonitoring Сборка не проходит из-за отсутствующего прототипа. Необходимо определить прототип или удалить ссылку на него. 🧰 Tools🪛 GitHub Actions: YAML Linter[error] 482-482: PrototypeID ComputerTabletopSensorMonitoring for type Robust.Shared.Prototypes.EntityPrototype not found. |
||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -427,6 +491,8 @@ | |
state: cpu_science | ||
- type: ComputerBoard | ||
prototype: ComputerRoboticsControl | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier | ||
|
||
- type: entity | ||
parent: BaseComputerCircuitboard | ||
|
@@ -438,3 +504,5 @@ | |
state: cpu_science | ||
- type: ComputerBoard | ||
prototype: StationAiUploadComputer | ||
- type: ComputerTabletopBoard # Frontier | ||
prototype: ComputerTabletopCargoBounty # Frontier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Проверьте консистентность прототипов ComputerTabletopBoard
Некоторые компьютеры используют неправильные прототипы (например, ComputerTabletopCargoBounty используется для разных типов компьютеров).
Also applies to: 178-179, 208-209
🏁 Script executed:
Length of output: 6141
Проверка консистентности прототипов ComputerTabletopBoard
Из результатов поиска видно, что во всех упомянутых блоках файла
Resources/Prototypes/Entities/Objects/Devices/Circuitboards/computer.yml
устройство с типом ComputerTabletopBoard всегда получает прототип ComputerTabletopCargoBounty. При этом наблюдаются блоки, где для разных типов компьютеров использованы иные прототипы (например, ComputerCargoShuttle, ComputerCrewMonitoring, SyndicateComputerComms и т.д.), что свидетельствует о том, что прототип ComputerTabletopCargoBounty используется повторно и, вероятно, применён некорректно для компьютеров типа ComputerTabletopBoard.
Рекомендуется проверить, соответствует ли использование данного прототипа задумке для устройств типа ComputerTabletopBoard, и, при необходимости, внести изменения для обеспечения согласованности.