mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
* Sign up for Cargorilla from the lobby * Modular * Update jobs.dm * our title screen compat --------- Co-authored-by: Jacquerel <hnevard@gmail.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
/datum/round_event_control/bureaucratic_error
|
|
name = "Bureaucratic Error"
|
|
typepath = /datum/round_event/bureaucratic_error
|
|
max_occurrences = 1
|
|
weight = 5
|
|
category = EVENT_CATEGORY_BUREAUCRATIC
|
|
description = "Randomly opens and closes job slots, along with changing the overflow role."
|
|
|
|
/datum/round_event/bureaucratic_error
|
|
announce_when = 1
|
|
|
|
/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")
|
|
|
|
/datum/round_event/bureaucratic_error/start()
|
|
var/list/jobs = SSjob.get_valid_overflow_jobs()
|
|
/* SKYRAT EDIT REMOVAL START
|
|
if(prob(33)) // Only allows latejoining as a single role.
|
|
var/datum/job/overflow = pick_n_take(jobs)
|
|
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
|
|
current.total_positions = 0
|
|
return
|
|
*/ // SKYRAT EDIT REMOVAL - no more locking off jobs
|
|
// Adds/removes a random amount of job slots from all jobs.
|
|
for(var/datum/job/current as anything in jobs)
|
|
current.total_positions = max(current.total_positions + rand(-2,4), 1) // SKYRAT EDIT CHANGE - No more locking off jobs - ORIGINAL: current.total_positions = max(current.total_positions + rand(-2,4), 0)
|