Bureacratic error event tweak

This commit is contained in:
skoglol
2020-01-29 00:29:13 +01:00
parent 40657c9ccd
commit 12feb78b82
+3 -2
View File
@@ -11,10 +11,11 @@
priority_announce("A recent bureaucratic error in the Organic Resources Department may result in personnel shortages in some departments and redundant staffing in others.", "Paperwork Mishap Alert")
/datum/round_event/bureaucratic_error/start()
var/list/jobs = SSjob.occupations.Copy()
var/list/jobs = SSjob.occupations.Copy()
if(prob(33)) // Only allows latejoining as a single role. Add latejoin AI bluespace pods for fun later.
var/datum/job/overflow = pick_n_take(jobs)
SSjob.set_overflow_role(overflow.title) // Ensures infinite slots as this role. Assistant will still be open for those that cant.
overflow.spawn_positions = -1
overflow.total_positions = -1 // Ensures infinite slots as this role. Assistant will still be open for those that cant play it.
for(var/job in jobs)
var/datum/job/current = job
if(current.title == "AI") // AI currently doesnt support latejoining past one total.