mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Bureaucratic error event tweaks (#21990)
* tweaks to bureaucratic event * line breaks * decreasing to 2
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
/datum/job/rd,
|
||||
/datum/job/hos,
|
||||
/datum/job/ai,
|
||||
/datum/job/cyborg,
|
||||
/datum/job/captain,
|
||||
/datum/job/hop,
|
||||
/datum/job/nanotrasenrep,
|
||||
@@ -20,16 +21,16 @@
|
||||
)
|
||||
|
||||
/datum/event/bureaucratic_error/announce()
|
||||
GLOB.major_announcement.Announce("A recent bureaucratic error in the Human Resources Department may result in personnel shortages in some departments and redundant staffing in others.", "Paperwork Mishap Alert")
|
||||
GLOB.major_announcement.Announce("A recent bureaucratic error in the Human Resources Department may result in personnel shortages in some departments and redundant staffing in others. Contact your local HoP to solve this issue.", "Paperwork Mishap Alert")
|
||||
|
||||
/datum/event/bureaucratic_error/start()
|
||||
var/list/affected_jobs = list() // For logging
|
||||
var/list/jobs = SSjobs.occupations.Copy()
|
||||
var/datum/job/overflow
|
||||
var/overflow_amount = rand(1, 6)
|
||||
var/overflow_amount = pick(1, 2)
|
||||
var/errors = 0
|
||||
while(errors <= overflow_amount)
|
||||
var/random_change = pick(-1, 1)
|
||||
while(errors < overflow_amount)
|
||||
var/random_change = pick(-2, -1, 1, 2)
|
||||
overflow = pick_n_take(jobs)
|
||||
if(overflow.admin_only)
|
||||
continue
|
||||
@@ -40,4 +41,4 @@
|
||||
errors++
|
||||
log_and_message_admins(affected_jobs.Join(".\n"))
|
||||
for(var/mob/M as anything in GLOB.dead_mob_list)
|
||||
to_chat(M, "<span class='deadsay'><b>Bureaucratic Error:</b> The following job slots have changed: [affected_jobs.Join(", ")].</span>")
|
||||
to_chat(M, "<span class='deadsay'><b>Bureaucratic Error:</b> The following job slots have changed: \n[affected_jobs.Join(",\n ")].</span>")
|
||||
|
||||
@@ -146,7 +146,7 @@ GLOBAL_LIST_EMPTY(event_last_fired)
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Koi School", /datum/event/carp_migration/koi, 80),
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Camera Failure", /datum/event/camera_failure, 100, list(ASSIGNMENT_ENGINEER = 10)),
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Fake Virus", /datum/event/fake_virus, 50),
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Bureaucratic Error",/datum/event/bureaucratic_error, 80, TRUE),
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Bureaucratic Error",/datum/event/bureaucratic_error, 40, TRUE),
|
||||
new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Disease Outbreak", /datum/event/disease_outbreak, 50, list(ASSIGNMENT_MEDICAL = 25), TRUE)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user