Skip to content

Commit

Permalink
fix error (#11171)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDragonfiend authored Jul 14, 2024
1 parent e480509 commit 6059353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/events/bureaucratic_error.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

/datum/round_event/bureaucratic_error
announceWhen = 1
var/datum/job/chosen_job
var/chosen_job_title

/datum/round_event/bureaucratic_error/setup()
var/error_count = 10
while(error_count--)
var/datum/job/J = SSjob.GetJob(pick(get_all_jobs()))
if(!J || J.lock_flags)
continue
chosen_job = J
chosen_job_title = J.title
break
if(!chosen_job)
if(isnull(chosen_job_title))
return kill()

/datum/round_event/bureaucratic_error/announce(fake)
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", SSstation.announcer.get_rand_alert_sound())

/datum/round_event/bureaucratic_error/start()
SSjob.set_overflow_role(chosen_job)
SSjob.set_overflow_role(chosen_job_title)

0 comments on commit 6059353

Please sign in to comment.