Skip to content

Commit

Permalink
Create a Security Borg job proto and spawner; for mapping. (DeltaV-St…
Browse files Browse the repository at this point in the history
…ation#1529)

* job locale

* job icon

* job proto

* job spawner

* fix errors

* add into department

* add the icon into UI
  • Loading branch information
DangerRevolution authored Jul 26, 2024
1 parent 00ae128 commit d6a90ab
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Resources/Locale/en-US/deltav/job/job-description.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
job-description-medical-borg = Half-human, Half-machine. Follow your laws, serve the crew, and assist the medical department.
job-description-chief-justice = Manage the justice department, act as a judge, and ensure everyone recieves fair and just treatment.
job-description-clerk = Organize trials, notarize documents, review charges, and act as a judge if needed.
job-description-prosecutor = Take statements from security and prepare cases against those accused of commiting crimes.
job-description-prosecutor = Take statements from security and prepare cases against those accused of commiting crimes.
job-description-courier = Deliver mail and other packages from and to logistics. Avoid dogs.
job-description-security-borg = Purpose-built to ensure the right of every crew member to liberty, justice and freedom, ensure the peace aboard the space station by following your laws and patrolling the halls.
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/deltav/job/job-names.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ job-name-clerk = Clerk
job-name-prosecutor = Prosecutor
job-name-lawyer = Attorney
job-name-courier = Courier
job-name-security-borg = Security Cyborg
# Role timers
JobMedicalBorg = Medical Cyborg
JobCourier = Courier
JobChiefJustice = Chief Justice
JobClerk = Clerk
JobProsecutor = Prosecutor
JobSecurityBorg = Security Cyborg
1 change: 0 additions & 1 deletion Resources/Locale/en-US/deltav/job/job-supervisors.ftl
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
job-supervisors-cj = the chief justice
15 changes: 15 additions & 0 deletions Resources/Prototypes/DeltaV/Entities/Markers/Spawners/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,18 @@
- state: green
- sprite: DeltaV/Markers/jobs.rsi
state: courier

- type: entity
id: SpawnPointSecurityBorg
parent: SpawnPointJobBase
name: security cyborg
components:
- type: SpawnPoint
job_id: SecurityBorg
- type: Sprite
layers:
- state: green
- sprite: DeltaV/Mobs/Silicon/chassis.rsi
state: security
- sprite: DeltaV/Mobs/Silicon/chassis.rsi
state: security_e
21 changes: 21 additions & 0 deletions Resources/Prototypes/DeltaV/Entities/Mobs/Player/silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,24 @@
startingItem: PowerCellMedium
- type: RandomMetadata
nameSegments: [names_borg]

- type: entity
parent: BorgChassisSecurity
id: PlayerBorgSecurity
suffix: Peacekeeper, Patrol, Bastion
components:
- type: ContainerFill
containers:
borg_brain:
- PositronicBrain
borg_module:
- BorgModuleSecurityPeacekeeper
- BorgModuleSecurityPatrol
- BorgModuleSecurityBastion
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellMedium
- type: RandomMetadata
nameSegments: [names_borg] # TODO: Make good names, this is a stupid list.
15 changes: 15 additions & 0 deletions Resources/Prototypes/DeltaV/Roles/Jobs/Security/securityborg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- type: job
id: SecurityBorg
name: job-name-security-borg
description: job-description-security-borg
playTimeTracker: JobSecurityBorg
requirements:
- !type:OverallPlaytimeRequirement
time: 216000 #60 hrs
- !type:DepartmentTimeRequirement
department: Security
time: 72000 #20 hrs
canBeAntag: false
icon: JobIconSecurityBorg
supervisors: job-supervisors-everyone
jobEntity: PlayerBorgSecurity
3 changes: 3 additions & 0 deletions Resources/Prototypes/DeltaV/Roles/play_time_trackers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@

- type: playTimeTracker
id: JobCourier

- type: playTimeTracker
id: JobSecurityBorg
7 changes: 7 additions & 0 deletions Resources/Prototypes/DeltaV/StatusEffects/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@
icon:
sprite: /Textures/DeltaV/Interface/Misc/job_icons.rsi
state: Prosecutor

- type: statusIcon
parent: JobIcon
id: JobIconSecurityBorg
icon:
sprite: /Textures/DeltaV/Interface/Misc/job_icons.rsi
state: SecurityBorg
1 change: 1 addition & 0 deletions Resources/Prototypes/Roles/Jobs/departments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
- Warden
- PrisonGuard # Nyanotrasen - PrisonGuard, see Resources/Prototypes/Nyanotrasen/Roles/Jobs/Security/prisonguard.yml
- Brigmedic # DeltaV - Brigmedic, see Resources/Prototypes/DeltaV/Roles/Jobs/Security/brigmedic.yml
- SecurityBorg # Delta-V : Security Borg

- type: department
id: Epistemics # DeltaV - Epistemics Department replacing Science
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": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/d917f4c2a088419d5c3aec7656b7ff8cebd1822e | nyanoPrisonGuard, nyanoMartialArtist, nyanoGladiator made by Floofers | ChiefJustice, Clerk by leonardo_dabepis (Discord)",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/d917f4c2a088419d5c3aec7656b7ff8cebd1822e | nyanoPrisonGuard, nyanoMartialArtist, nyanoGladiator made by Floofers | ChiefJustice, Clerk by leonardo_dabepis (Discord), SecurityBorg recoloured from MedicalBorg by DangerRevolution(github)",
"size": {
"x": 8,
"y": 8
Expand Down Expand Up @@ -39,6 +39,9 @@
},
{
"name": "Lawyer"
},
{
"name": "SecurityBorg"
}
]
}

0 comments on commit d6a90ab

Please sign in to comment.