Skip to content
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

Magistrate Foundation #1890

Merged
merged 9 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ss220/prototypes/access/access.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ id-card-access-level-ussp = СССП
id-card-access-level-ussp-command = СССП Командный
id-card-access-level-ussp-medical = СССП Медицинский
id-card-access-level-ussp-Engineering = СССП Инженерный

id-card-access-level-magistrate = Магистрат
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-MagistrateIDCard = ID карта магистрата
.desc = { ent-IDCardStandard.desc }
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ ent-DoorElectronicsUsspMedical = { ent-DoorElectronicsUssp }
ent-DoorElectronicsUsspEngineering = { ent-DoorElectronicsUssp }
.suffix = СССП, Закрыт, Инженерный
.desc = { ent-DoorElectronics.desc }

ent-DoorElectronicsMagistrate = { ent-DoorElectronics }
.suffix = Магистрат, Закрыт
.desc = { ent-DoorElectronics.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ent-AirlockMagistrateGlassLocked = { ent-AirlockSecurityGlass }
.suffix = Магистрат, Закрыт
.desc = { ent-AirlockSecurityGlass.desc }

ent-AirlockMagistrateLocked = { ent-AirlockServiceLocked }
.suffix = Магистрат, Закрыт
.desc = { ent-AirlockServiceLocked.desc }
8 changes: 7 additions & 1 deletion Resources/Locale/ru-RU/ss220/storage/lockers.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ ent-LockerMime = шкаф мима
.desc = Самое тихое место на станции.
ent-LockerMimeFilled = { ent-LockerMime }
.suffix = Заполненный
.desc = { ent-LockerMime.desc }
.desc = { ent-LockerMime.desc }

ent-LockerMagistrate = шкаф Магистрата
.desc = { ent-LockerBaseSecure.desc }
ent-LockerMagistrateFilled = { ent-LockerMagistrate }
.suffix = Заполненный
.desc = { ent-LockerBaseSecure.desc }
1 change: 1 addition & 0 deletions Resources/Prototypes/Access/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
- Chapel
- Hydroponics
- Atmospherics
- Magistrate #SS220-Magistrate Foundation
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- Security
- Service
- Theatre
- Magistrate #SS220-Magistrate Foundation
privilegedIdSlot:
name: id-card-console-privileged-id
ejectSound: /Audio/Machines/id_swipe.ogg
Expand Down Expand Up @@ -117,6 +118,7 @@
- Security
- Service
- Theatre
- Magistrate #SS220-Magistrate Foundation
- CentralCommand
- NuclearOperative
- SyndicateAgent
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/SS220/Access/internal-affairs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- type: accessLevel
id: Magistrate
name: id-card-access-level-magistrate
canBeSwitchableInReader: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Magistrate
- type: entityTable
id: LockerFillMagistrate
table: !type:AllSelector
children:
# - id: ClothingHeadsetLawyer До появления ДВД
# - id: DoorRemoteLawyer До появления ДВД
- id: ClothingOuterRobesJudge
- id: ClothingHeadHatPwig
- id: WeaponDisabler
- id: ClothingWristWatchGold
- id: ClothingEyesGlassesCommand
- id: Telescopichka

- type: entity
id: LockerMagistrateFilled
suffix: Filled
parent: LockerMagistrate
components:
- type: EntityTableContainerFill
containers:
entity_storage: !type:NestedSelector
tableId: LockerFillMagistrate
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- Service
- SyndicateAgent
- Theatre
- Magistrate
#New centcomm accesses begin
- CentralCommand
- CentralCommandCBURN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- Service
- SyndicateAgent
- Theatre
- Magistrate
#New centcomm accesses begin
- CentralCommand
- CentralCommandCBURN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@
components:
- type: AccessReader
access: [["UsspEngineering"]]

- type: entity
parent: DoorElectronics
id: DoorElectronicsMagistrate
suffix: Magistrate, Locked
components:
- type: AccessReader
access: [["Magistrate"]]
32 changes: 31 additions & 1 deletion Resources/Prototypes/SS220/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,34 @@
map: [ "enum.PdaVisualLayers.IdLight" ]
visible: false #SS220 PDA-Resprite-End
- type: Icon
state: pda-seniorservice
state: pda-seniorservice

- type: entity
parent: BasePDA
id: MagistratePDA
name: magistrate PDA
description: ###
components:
- type: Pda
id: MagistrateIDCard
state: pda-magistrate
DexlerXD marked this conversation as resolved.
Show resolved Hide resolved
DexlerXD marked this conversation as resolved.
Show resolved Hide resolved
- type: PdaBorderColor
borderColor: "#414452"
accentVColor: "#731611"
accentHColor: "#dfac5c"
- type: Sprite
sprite: Objects/Devices/pda.rsi
layers:
- map: [ "enum.PdaVisualLayers.Base" ]
- state: "screen-nt"
shader: "unshaded"
- state: "light_overlay"
map: [ "enum.PdaVisualLayers.Flashlight" ]
shader: "unshaded"
visible: false
- state: "id_overlay"
map: [ "enum.PdaVisualLayers.IdLight" ]
visible: false
- type: Icon
sprite: Objects/Devices/pda.rsi
state: pda-magistrate
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,16 @@
groups:
- AllAccess # SS220 Fast fix access
- CentralCommand

- type: entity
parent: IDCardStandard
id: MagistrateIDCard
name: magistrate ID card
components:
- type: Sprite
layers:
- state: silver
- state: idmagistrate
- type: PresetIdCard
job: Magistrate

Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,25 @@
- type: ContainerFill
containers:
board: [ DoorElectronicsExternal ]

- type: entity
parent: AirlockCommandGlass
id: AirlockMagistrateGlassLocked
suffix: Magistrate, Locked
components:
- type: Sprite
sprite: SS220/Structures/Doors/Airlocks/Glass/magistrate.rsi
- type: ContainerFill
containers:
board: [ DoorElectronicsMagistrate ]

- type: entity
parent: Airlock
id: AirlockMagistrateLocked
suffix: Magistrate, Locked
components:
- type: Sprite
sprite: SS220/Structures/Doors/Airlocks/Glass/magistrate.rsi
- type: ContainerFill
containers:
board: [ DoorElectronicsMagistrate ]
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,16 @@
- type: EntityStorageVisuals
stateDoorOpen: generic_open
stateDoorClosed: generic_red_door

- type: entity
id: LockerMagistrate
parent: LockerBase
name: magistrate locker
components:
- type: Appearance
- type: EntityStorageVisuals
stateBaseClosed: nt
stateDoorOpen: medsteel_open
stateDoorClosed: magistrate_door
- type: AccessReader
access: [ [ "Magistrate" ] ]
11 changes: 11 additions & 0 deletions Resources/Prototypes/SS220/Entities/markers/Spawners/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- type: entity
id: SpawnPointMagistrate
parent: SpawnPointJobBase
name: magistrate
components:
- type: SpawnPoint
job_id: Magistrate
- type: Sprite
layers:
- state: green
- state: lawyer
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
- type: job
id: Magistrate
name: job-name-magistrate #todo добавить при добавлении ДВД
description: job-description-magistrate #todo добавить при добавлении ДВД
playTimeTracker: JobMagistrate
requirements:
- !type:DepartmentTimeRequirement
department: Command
time: 288000 # SS220-RoleTime 2
- !type:DepartmentTimeRequirement #todo поменять при добавлении ДВД
department: InternalAffairs
DexlerXD marked this conversation as resolved.
Show resolved Hide resolved
time: 288000 # SS220-RoleTime 2
- !type:AgeRequirement
requiredAge: 32
- !type:SpeciesRequirement #SS220-jobbans begin
inverted: true
species:
- Felinid #SS220-jobbans end
weight: 20
startingGear: MagistrateGear
icon: "JobIconMagistrate"
requireAdminNotify: true
joinNotifyCrew: true
supervisors: job-supervisors-centcom
canBeAntag: false
radioBold: true
access:
- Command
- Lawyer
- Magistrate
- Service
- Brig
- Maintenance
- External
special:
- !type:AddImplantSpecial
implants: [ MindShieldImplant ]
- !type:AddComponentSpecial
components:
- type: CommandStaff

- type: startingGear
id: MagistrateGear
equipment:
shoes: ClothingShoesBootsLaceup
eyes: ClothingEyesGlassesCommand
id: MagistratePDA
ears: ClothingHeadsetIAA
storage:
back:
- Flash
3 changes: 3 additions & 0 deletions Resources/Prototypes/SS220/Roles/play_time_trackers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
- type: playTimeTracker
id: EventRole

- type: playTimeTracker
id: JobMagistrate

- type: playTimeTracker
id: JobSeniorEngineer

Expand Down
7 changes: 7 additions & 0 deletions Resources/Prototypes/SS220/StatusIcons/job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- type: jobIcon
parent: JobIcon
id: JobIconMagistrate
icon:
sprite: /Textures/SS220/Interface/Misc/job_icons.rsi
state: magistrate
jobName: job-name-magistrate
5 changes: 4 additions & 1 deletion Resources/Textures/Objects/Devices/pda.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "Sprited by Kit0vras (Github) for SS220, pda-ce_dark sprited by nightmare_stalker (Discord) for SS220",
"copyright": "Sprited by Kit0vras (Github) for SS220, pda-ce_dark sprited by nightmare_stalker (Discord) for SS220, pda-magistrate sprited by Estkemran (Github) for SS220",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -119,6 +119,9 @@
{
"name": "pda-library"
},
{
"name": "pda-magistrate"
},
{
"name": "pda-medical"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion Resources/Textures/Objects/Misc/id_cards.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "Made by Kit0vras (Github) for SS220",
"copyright": "Made by Kit0vras (Github) for SS220, idmagistrate state sprited by Estkemran (Github) for SS220",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -109,6 +109,9 @@
{
"name": "idiaa"
},
{
"name": "idmagistrate"
},
{
"name": "idmedicaldoctor"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "SecurityPilot Made by Surani, mindslave Made by ell_good (Discord) For SS220",
"copyright": "SecurityPilot Made by Surani, mindslave Made by ell_good (Discord) For SS220, magistrate sprited by Estkemran (GIthub) for SS220",

"size": {
"x": 8,
Expand All @@ -11,6 +11,9 @@
{
"name": "SecurityPilot"
},
{
"name": "magistrate"
},
{
"name": "master"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading