Access/Airlock Revamp (#21701)

* Access/Airlock Revamp

* Fix migration error, and update IDCardConsoleComp

* Goofed on that one

* Requested changes

* Ooops

* Undo migration

---------

Co-authored-by: Jeff <velcroboy333@hotmail.com>
This commit is contained in:
Velcroboy
2023-11-16 16:20:48 -06:00
committed by GitHub
parent 00d7b35903
commit 86f1977a64
14 changed files with 140 additions and 6 deletions

View File

@@ -63,6 +63,7 @@ public sealed partial class IdCardConsoleComponent : Component
"Hydroponics", "Hydroponics",
"Janitor", "Janitor",
"Kitchen", "Kitchen",
"Lawyer",
"Maintenance", "Maintenance",
"Medical", "Medical",
"Quartermaster", "Quartermaster",

View File

@@ -5,7 +5,6 @@ id-card-access-level-head-of-personnel = Head of Personnel
id-card-access-level-head-of-security = Head of Security id-card-access-level-head-of-security = Head of Security
id-card-access-level-security = Security id-card-access-level-security = Security
id-card-access-level-armory = Armory id-card-access-level-armory = Armory
id-card-access-level-brig = Brig
id-card-access-level-detective = Detective id-card-access-level-detective = Detective
id-card-access-level-chief-engineer = Chief Engineer id-card-access-level-chief-engineer = Chief Engineer
@@ -25,12 +24,14 @@ id-card-access-level-cargo = Cargo
id-card-access-level-salvage = Salvage id-card-access-level-salvage = Salvage
id-card-access-level-bar = Bar id-card-access-level-bar = Bar
id-card-access-level-brig = Brig
id-card-access-level-kitchen = Kitchen id-card-access-level-kitchen = Kitchen
id-card-access-level-hydroponics = Hydroponics id-card-access-level-hydroponics = Hydroponics
id-card-access-level-service = Service id-card-access-level-service = Service
id-card-access-level-janitor = Janitor id-card-access-level-janitor = Janitor
id-card-access-level-theatre = Theatre id-card-access-level-theatre = Theatre
id-card-access-level-chapel = Chapel id-card-access-level-chapel = Chapel
id-card-access-level-lawyer = Lawyer
id-card-access-level-maintenance = Maintenance id-card-access-level-maintenance = Maintenance

View File

@@ -13,6 +13,7 @@
- Detective - Detective
- Armory - Armory
- Brig - Brig
- Lawyer
- Engineering - Engineering
- Medical - Medical
- Quartermaster - Quartermaster

View File

@@ -26,6 +26,10 @@
id: Chapel id: Chapel
name: id-card-access-level-chapel name: id-card-access-level-chapel
- type: accessLevel
id: Lawyer
name: id-card-access-level-lawyer
- type: accessGroup - type: accessGroup
id: Service id: Service
tags: tags:
@@ -37,3 +41,4 @@
- Janitor - Janitor
- Theatre - Theatre
- Chapel - Chapel
- Lawyer

View File

@@ -38,6 +38,7 @@
- Hydroponics - Hydroponics
- Janitor - Janitor
- Kitchen - Kitchen
- Lawyer
- Maintenance - Maintenance
- Medical - Medical
- Quartermaster - Quartermaster

View File

@@ -7,6 +7,14 @@
- type: AccessReader - type: AccessReader
access: [["Service"]] access: [["Service"]]
- type: entity
parent: Airlock
id: AirlockLawyerLocked
suffix: Lawyer, Locked
components:
- type: AccessReader
access: [["Lawyer"]]
- type: entity - type: entity
parent: Airlock parent: Airlock
id: AirlockTheatreLocked id: AirlockTheatreLocked
@@ -127,6 +135,14 @@
- type: AccessReader - type: AccessReader
access: [["Kitchen"], ["Hydroponics"]] access: [["Kitchen"], ["Hydroponics"]]
- type: entity
parent: AirlockFreezer
id: AirlockFreezerHydroponicsLocked
suffix: Hydroponics, Locked
components:
- type: AccessReader
access: [["Hydroponics"]]
- type: entity - type: entity
parent: AirlockEngineering parent: AirlockEngineering
id: AirlockEngineeringLocked id: AirlockEngineeringLocked
@@ -295,6 +311,16 @@
- type: Wires - type: Wires
layoutId: AirlockSecurity layoutId: AirlockSecurity
- type: entity
parent: AirlockSecurity
id: AirlockSecurityLawyerLocked
suffix: Security/Lawyer, Locked
components:
- type: AccessReader
access: [["Security"], ["Lawyer"]]
- type: Wires
layoutId: AirlockSecurity
- type: entity - type: entity
parent: AirlockSecurity parent: AirlockSecurity
id: AirlockArmoryLocked id: AirlockArmoryLocked
@@ -330,6 +356,14 @@
- type: AccessReader - type: AccessReader
access: [["Service"]] access: [["Service"]]
- type: entity
parent: AirlockGlass
id: AirlockLawyerGlassLocked
suffix: Lawyer, Locked
components:
- type: AccessReader
access: [["Lawyer"]]
- type: entity - type: entity
parent: AirlockGlass parent: AirlockGlass
id: AirlockBarGlassLocked id: AirlockBarGlassLocked
@@ -442,6 +476,14 @@
- type: AccessReader - type: AccessReader
access: [["Salvage"]] access: [["Salvage"]]
- type: entity
parent: AirlockChemistryGlass
id: AirlockChemistryGlassLocked
suffix: Chemistry, Locked
components:
- type: AccessReader
access: [["Chemistry"]]
- type: entity - type: entity
parent: AirlockMedicalGlass parent: AirlockMedicalGlass
id: AirlockMedicalGlassLocked id: AirlockMedicalGlassLocked
@@ -562,6 +604,14 @@
- type: AccessReader - type: AccessReader
access: [["Brig"]] access: [["Brig"]]
- type: entity
parent: AirlockSecurityGlass
id: AirlockSecurityLawyerGlassLocked
suffix: Security/Lawyer, Locked
components:
- type: AccessReader
access: [["Security"], ["Lawyer"]]
- type: entity - type: entity
parent: AirlockSecurityGlass parent: AirlockSecurityGlass
id: AirlockArmoryGlassLocked id: AirlockArmoryGlassLocked
@@ -691,6 +741,22 @@
- type: AccessReader - type: AccessReader
access: [["Janitor"]] access: [["Janitor"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintLawyerLocked
suffix: Lawyer, Locked
components:
- type: AccessReader
access: [["Lawyer"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintServiceLocked
suffix: Service, Locked
components:
- type: AccessReader
access: [["Service"]]
- type: entity - type: entity
parent: AirlockMaint parent: AirlockMaint
id: AirlockMaintTheatreLocked id: AirlockMaintTheatreLocked
@@ -779,6 +845,46 @@
- type: AccessReader - type: AccessReader
access: [["Captain"]] access: [["Captain"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintChiefEngineerLocked
suffix: ChiefEngineer, Locked
components:
- type: AccessReader
access: [["ChiefEngineer"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintChiefMedicalOfficerLocked
suffix: ChiefMedicalOfficer, Locked
components:
- type: AccessReader
access: [["ChiefMedicalOfficer"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintHeadOfSecurityLocked
suffix: HeadOfSecurity, Locked
components:
- type: AccessReader
access: [["HeadOfSecurity"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintResearchDirectorLocked
suffix: ResearchDirector, Locked
components:
- type: AccessReader
access: [["ResearchDirector"]]
- type: entity
parent: AirlockMaint
id: AirlockMaintArmoryLocked
suffix: Armory, Locked
components:
- type: AccessReader
access: [["Armory"]]
- type: entity - type: entity
parent: AirlockSyndicate parent: AirlockSyndicate
id: AirlockSyndicateLocked id: AirlockSyndicateLocked

View File

@@ -180,6 +180,16 @@
- type: PaintableAirlock - type: PaintableAirlock
group: Glass group: Glass
- type: entity
parent: AirlockGlass
id: AirlockChemistryGlass
suffix: Chemistry
components:
- type: Sprite
sprite: Structures/Doors/Airlocks/Glass/medical.rsi
- type: PaintableAirlock
group: Glass
- type: entity - type: entity
parent: AirlockGlass parent: AirlockGlass
id: AirlockMedicalGlass id: AirlockMedicalGlass
@@ -240,4 +250,4 @@
- type: Sprite - type: Sprite
sprite: Structures/Doors/Airlocks/Glass/syndicate.rsi sprite: Structures/Doors/Airlocks/Glass/syndicate.rsi
- type: PaintableAirlock - type: PaintableAirlock
group: Glass group: Glass

View File

@@ -175,6 +175,14 @@
- type: AccessReader - type: AccessReader
access: [["Kitchen"]] access: [["Kitchen"]]
- type: entity
parent: WindoorSecureSecurityLocked
id: WindoorSecureSecurityLawyerLocked
suffix: Security/Lawyer, Locked
components:
- type: AccessReader
access: [["Security"], ["Lawyer"]]
- type: entity - type: entity
parent: WindoorSecure parent: WindoorSecure
id: WindoorSecureMedicalLocked id: WindoorSecureMedicalLocked

View File

@@ -1454,7 +1454,7 @@
- state: panel - state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"] map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: AccessReader - type: AccessReader
access: [["Brig"]] access: [["Lawyer"]]
- type: entity - type: entity
parent: VendingMachine parent: VendingMachine

View File

@@ -7,6 +7,7 @@
icon: "JobIconJanitor" icon: "JobIconJanitor"
supervisors: job-supervisors-hop supervisors: job-supervisors-hop
access: access:
- Service
- Janitor - Janitor
- Maintenance - Maintenance
special: special:

View File

@@ -11,7 +11,7 @@
supervisors: job-supervisors-hop supervisors: job-supervisors-hop
access: access:
- Service - Service
- Brig - Lawyer
- Maintenance - Maintenance
- type: startingGear - type: startingGear

View File

@@ -7,7 +7,6 @@
icon: "JobIconLibrarian" icon: "JobIconLibrarian"
supervisors: job-supervisors-hop supervisors: job-supervisors-hop
access: access:
- Service
- Maintenance - Maintenance
- type: startingGear - type: startingGear

View File

@@ -44,6 +44,7 @@
- Salvage - Salvage
- Security - Security
- Brig - Brig
- Lawyer
- Cargo - Cargo
- Atmospherics - Atmospherics
- Medical - Medical

View File

@@ -13,10 +13,10 @@
canBeAntag: false canBeAntag: false
access: access:
- Security - Security
- Brig
- Armory - Armory
- Maintenance - Maintenance
- Service - Service
- Brig
- External - External
- Detective - Detective
special: special: