Jobs code is in seperate files

🆑 coiax
code: Jobe code has been moved into seperate files. There should be no
change in behaviour.
/🆑

Every time I've ever gone into job code, this has annoyed me so much.
Some jobs have seperate files, some do not. So I put them in seperate
files, which I thought was a simple job. I removed some comments in the
process.

But it turns out the display order on the job preference screen was
literally determined by the ordering of the datums in the source files.
So I needed to add a way to order it. Now you can reorder the jobs by
changing the values of the defines.
This commit is contained in:
Jack Edge
2019-01-26 20:54:13 +00:00
parent bade4fe9b2
commit 9740ebb7ad
43 changed files with 1555 additions and 1535 deletions
+1 -1
View File
@@ -646,7 +646,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/datum/job/overflow = SSjob.GetJob(SSjob.overflow_role)
for(var/datum/job/job in SSjob.occupations)
for(var/datum/job/job in sortList(SSjob.occupations, /proc/cmp_job_display_asc))
index += 1
if((index >= limit) || (job.title in splitJobs))