Heads/sec/legal can no longer join after revolutionaries have won + Refactor (#22328)

* THE THIRD REV PR

* 2nd time

* final changes

* yea

* fixes

* comments

* oops

* sirryan review

* Update code/game/jobs/job/support.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Contrabang
2023-09-25 19:03:25 -04:00
committed by GitHub
co-authored by Luc
parent 6118cc8f48
commit 59c70f983b
17 changed files with 115 additions and 74 deletions
+7 -7
View File
@@ -262,22 +262,22 @@
if(job.is_position_available())
var/list/opening_data = list("title" = job.title)
// Is the job a command job?
if(job.title in GLOB.command_positions)
if(job.job_department_flags & DEP_FLAG_COMMAND)
opening_data["is_command"] = TRUE
// Add the job opening to the corresponding categories
// Ugly!
opening_data = list(opening_data)
if(job.is_security)
if(job.job_department_flags & DEP_FLAG_SECURITY)
jobs["security"] += opening_data
if(job.is_engineering)
if(job.job_department_flags & DEP_FLAG_ENGINEERING)
jobs["engineering"] += opening_data
if(job.is_medical)
if(job.job_department_flags & DEP_FLAG_MEDICAL)
jobs["medical"] += opening_data
if(job.is_science)
if(job.job_department_flags & DEP_FLAG_SCIENCE)
jobs["science"] += opening_data
if(job.is_service)
if(job.job_department_flags & DEP_FLAG_SERVICE)
jobs["service"] += opening_data
if(job.is_supply)
if(job.job_department_flags & DEP_FLAG_SUPPLY)
jobs["supply"] += opening_data
// Append temp photo