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

Initial Role Timers #46

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all 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: 1 addition & 1 deletion Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static readonly CVarDef<bool>
/// If roles should be restricted based on time.
/// </summary>
public static readonly CVarDef<bool>
GameRoleTimers = CVarDef.Create("game.role_timers", false, CVar.SERVER | CVar.REPLICATED);
GameRoleTimers = CVarDef.Create("game.role_timers", true, CVar.SERVER | CVar.REPLICATED);

/// <summary>
/// Whether a random position offset will be applied to the station on roundstart.
Expand Down
20 changes: 10 additions & 10 deletions Resources/Prototypes/Roles/Jobs/Cargo/quartermaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
name: job-name-qm
description: job-description-qm
playTimeTracker: JobQuartermaster
requirements:
- !type:RoleTimeRequirement
role: JobCargoTechnician
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobSalvageSpecialist
time: 21600 #6 hrs
- !type:DepartmentTimeRequirement
department: Cargo
time: 108000 # 30 hrs
# requirements:
# - !type:RoleTimeRequirement
# role: JobCargoTechnician
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobSalvageSpecialist
# time: 21600 #6 hrs
# - !type:DepartmentTimeRequirement
# department: Cargo
# time: 108000 # 30 hrs
weight: 10
startingGear: QuartermasterGear
icon: "QuarterMaster"
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Cargo/salvage_specialist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-salvagespec
description: job-description-salvagespec
playTimeTracker: JobSalvageSpecialist
requirements:
- !type:DepartmentTimeRequirement
department: Cargo
time: 3600
# requirements:
# - !type:DepartmentTimeRequirement
# department: Cargo
# time: 3600
icon: "ShaftMiner"
startingGear: SalvageSpecialistGear
supervisors: job-supervisors-qm
Expand Down
6 changes: 3 additions & 3 deletions Resources/Prototypes/Roles/Jobs/Civilian/bartender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
description: job-description-bartender
playTimeTracker: JobBartender
requirements:
- !type:DepartmentTimeRequirement
department: Civilian
time: 1800
# - !type:DepartmentTimeRequirement
# department: Civilian
# time: 1800
startingGear: BartenderGear
icon: "Bartender"
supervisors: job-supervisors-hop
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Civilian/chef.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-chef
description: job-description-chef
playTimeTracker: JobChef
requirements:
- !type:DepartmentTimeRequirement
department: Civilian
time: 1800
# requirements:
# - !type:DepartmentTimeRequirement
# department: Civilian
# time: 1800
startingGear: ChefGear
icon: "Chef"
supervisors: job-supervisors-hop
Expand Down
38 changes: 19 additions & 19 deletions Resources/Prototypes/Roles/Jobs/Command/captain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
name: job-name-captain
description: job-description-captain
playTimeTracker: JobCaptain
requirements:
- !type:RoleTimeRequirement
role: JobHeadOfPersonnel
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobHeadOfSecurity
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobChiefMedicalOfficer
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobChiefEngineer
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobResearchDirector
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobQuartermaster
time: 21600 #6 hrs
# requirements:
# - !type:RoleTimeRequirement
# role: JobHeadOfPersonnel
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobHeadOfSecurity
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobChiefMedicalOfficer
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobChiefEngineer
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobResearchDirector
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobQuartermaster
# time: 21600 #6 hrs
weight: 20
startingGear: CaptainGear
icon: "Captain"
Expand Down
14 changes: 2 additions & 12 deletions Resources/Prototypes/Roles/Jobs/Command/head_of_personnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@
description: job-description-hop
playTimeTracker: JobHeadOfPersonnel
requirements:
- !type:DepartmentTimeRequirement
department: Engineering
time: 54000 # 15 hrs
- !type:DepartmentTimeRequirement
department: Medical
time: 54000 # 15 hrs
- !type:DepartmentTimeRequirement
department: Security
time: 54000 # 15 hrs
- !type:DepartmentTimeRequirement
department: Command
time: 72000 # 20 hrs
- !type:OverallPlaytimeRequirement
time: 36000
weight: 20
startingGear: HoPGear
icon: "HeadOfPersonnel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
description: job-description-atmostech
playTimeTracker: JobAtmosphericTechnician
requirements:
- !type:DepartmentTimeRequirement
department: Engineering
time: 3600
# - !type:DepartmentTimeRequirement
# department: Engineering
# time: 3600
startingGear: AtmosphericTechnicianGear
icon: "AtmosphericTechnician"
supervisors: job-supervisors-ce
Expand Down
20 changes: 10 additions & 10 deletions Resources/Prototypes/Roles/Jobs/Engineering/chief_engineer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
name: job-name-ce
description: job-description-ce
playTimeTracker: JobChiefEngineer
requirements:
- !type:RoleTimeRequirement
role: JobAtmosphericTechnician
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobStationEngineer
time: 21600 #6 hrs
- !type:DepartmentTimeRequirement
department: Engineering
time: 108000 # 30 hrs
# requirements:
# - !type:RoleTimeRequirement
# role: JobAtmosphericTechnician
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobStationEngineer
# time: 21600 #6 hrs
# - !type:DepartmentTimeRequirement
# department: Engineering
# time: 108000 # 30 hrs
weight: 10
startingGear: ChiefEngineerGear
icon: "ChiefEngineer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-engineer
description: job-description-engineer
playTimeTracker: JobStationEngineer
requirements:
- !type:DepartmentTimeRequirement
department: Engineering
time: 1800
# requirements:
# - !type:DepartmentTimeRequirement
# department: Engineering
# time: 1800
startingGear: StationEngineerGear
icon: "StationEngineer"
supervisors: job-supervisors-ce
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Medical/chemist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-chemist
description: job-description-chemist
playTimeTracker: JobChemist
requirements:
- !type:DepartmentTimeRequirement
department: Medical
time: 1800
# requirements:
# - !type:DepartmentTimeRequirement
# department: Medical
# time: 1800
startingGear: ChemistGear
icon: "Chemist"
supervisors: job-supervisors-cmo
Expand Down
20 changes: 10 additions & 10 deletions Resources/Prototypes/Roles/Jobs/Medical/chief_medical_officer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
name: job-name-cmo
description: job-description-cmo
playTimeTracker: JobChiefMedicalOfficer
requirements:
- !type:RoleTimeRequirement
role: JobChemist
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobMedicalDoctor
time: 21600 #6 hrs
- !type:DepartmentTimeRequirement
department: Medical
time: 108000 # 30 hrs
# requirements:
# - !type:RoleTimeRequirement
# role: JobChemist
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobMedicalDoctor
# time: 21600 #6 hrs
# - !type:DepartmentTimeRequirement
# department: Medical
# time: 108000 # 30 hrs
weight: 10
startingGear: CMOGear
icon: "ChiefMedicalOfficer"
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Medical/medical_doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-doctor
description: job-description-doctor
playTimeTracker: JobMedicalDoctor
requirements:
- !type:DepartmentTimeRequirement
department: Medical
time: 1800
# requirements:
# - !type:DepartmentTimeRequirement
# department: Medical
# time: 1800
startingGear: DoctorGear
icon: "MedicalDoctor"
supervisors: job-supervisors-cmo
Expand Down
12 changes: 6 additions & 6 deletions Resources/Prototypes/Roles/Jobs/Medical/paramedic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
name: job-name-paramedic
description: job-description-paramedic
playTimeTracker: JobParamedic
requirements:
- !type:DepartmentTimeRequirement
department: Medical
time: 9000
- !type:OverallPlaytimeRequirement
time: 54000
# requirements:
# - !type:DepartmentTimeRequirement
# department: Medical
# time: 9000
# - !type:OverallPlaytimeRequirement
# time: 54000
startingGear: ParamedicGear
icon: "Paramedic"
supervisors: job-supervisors-cmo
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Science/research_director.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-rd
description: job-description-rd
playTimeTracker: JobResearchDirector
requirements:
- !type:DepartmentTimeRequirement
department: Science
time: 108000 # 30 hrs
# requirements:
# - !type:DepartmentTimeRequirement
# department: Science
# time: 108000 # 30 hrs
weight: 10
startingGear: ResearchDirectorGear
icon: "ResearchDirector"
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Science/scientist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
name: job-name-scientist
description: job-description-scientist
playTimeTracker: JobScientist
requirements:
- !type:DepartmentTimeRequirement
department: Science
time: 1800
# requirements:
# - !type:DepartmentTimeRequirement
# department: Science
# time: 1800
startingGear: ScientistGear
icon: "Scientist"
supervisors: job-supervisors-rd
Expand Down
5 changes: 2 additions & 3 deletions Resources/Prototypes/Roles/Jobs/Security/detective.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
description: job-description-detective
playTimeTracker: JobDetective
requirements:
- !type:DepartmentTimeRequirement
department: Security
time: 7200 #2 hrs
- !type:OverallPlaytimeRequirement
time: 10800 #3 hr
startingGear: DetectiveGear
icon: "Detective"
supervisors: job-supervisors-hos
Expand Down
26 changes: 14 additions & 12 deletions Resources/Prototypes/Roles/Jobs/Security/head_of_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
description: job-description-hos
playTimeTracker: JobHeadOfSecurity
requirements:
- !type:RoleTimeRequirement
role: JobWarden
time: 21600 #6 hrs
- !type:RoleTimeRequirement
role: JobDetective
time: 7200 #2 hrs
- !type:RoleTimeRequirement
role: JobSecurityOfficer
time: 36000 #10 hrs
- !type:DepartmentTimeRequirement
department: Security
time: 108000 # 30 hrs
- !type:OverallPlaytimeRequirement
time: 50400
# - !type:RoleTimeRequirement
# role: JobWarden
# time: 21600 #6 hrs
# - !type:RoleTimeRequirement
# role: JobDetective
# time: 7200 #2 hrs
# - !type:RoleTimeRequirement
# role: JobSecurityOfficer
# time: 36000 #10 hrs
# - !type:DepartmentTimeRequirement
# department: Security
# time: 108000 # 30 hrs
weight: 10
startingGear: HoSGear
icon: "HeadOfSecurity"
Expand Down
5 changes: 2 additions & 3 deletions Resources/Prototypes/Roles/Jobs/Security/security_officer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
description: job-description-security
playTimeTracker: JobSecurityOfficer
requirements:
- !type:DepartmentTimeRequirement
department: Security
time: 3600 #1 hr
- !type:OverallPlaytimeRequirement
time: 7200 #2 hr
startingGear: SecurityOfficerGear
icon: "SecurityOfficer"
supervisors: job-supervisors-hos
Expand Down
5 changes: 2 additions & 3 deletions Resources/Prototypes/Roles/Jobs/Security/warden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
description: job-description-warden
playTimeTracker: JobWarden
requirements:
- !type:DepartmentTimeRequirement
department: Security
time: 10800
- !type:OverallPlaytimeRequirement
time: 14400
startingGear: WardenGear
icon: "Warden"
supervisors: job-supervisors-hos
Expand Down