Update occupation.dm

This commit is contained in:
Novacat
2020-03-15 14:40:44 -04:00
committed by GitHub
parent 3ac5a32e39
commit 557ed2e43e
@@ -54,11 +54,7 @@
if(alt_title && !(alt_title in job.alt_titles))
pref.player_alt_titles -= job.title
<<<<<<< HEAD
/datum/category_item/player_setup_item/occupation/content(mob/user, limit = 20, list/splitJobs = list("Pathfinder")) //VOREStation Edit
=======
/datum/category_item/player_setup_item/occupation/content(mob/user, limit = 20, list/splitJobs = list())
>>>>>>> 920e495... Merge pull request #6813 from Neerti/occupation_screen_fix
if(!job_master)
return
@@ -71,12 +67,6 @@
//The job before the current job. I only use this to get the previous jobs color when I'm filling in blank rows.
var/datum/job/lastJob
<<<<<<< HEAD
if (!job_master) return
for(var/datum/job/job in job_master.occupations)
if(job.latejoin_only) continue //VOREStation Code
if((++index >= limit) || (job.title in splitJobs))
=======
var/datum/department/last_department = null // Used to avoid repeating the look-ahead check for if a whole department can fit.
var/list/all_valid_jobs = list()
@@ -92,6 +82,7 @@
all_valid_jobs += department.jobs[J]
for(var/datum/job/job in all_valid_jobs)
if(job.latejoin_only) continue //VOREStation Code
var/datum/department/current_department = SSjob.get_primary_department_of_job(job)
// Should we add a new column?
@@ -114,7 +105,6 @@
if(make_new_column)
>>>>>>> 920e495... Merge pull request #6813 from Neerti/occupation_screen_fix
/*******
if((index < limit) && (lastJob != null))
//If the cells were broken up by a job in the splitJob list then it will fill in the rest of the cells with