From f048e8b1dbe3384898b6372022c3d5609f0fc369 Mon Sep 17 00:00:00 2001 From: Kyep Date: Tue, 8 May 2018 19:51:23 -0700 Subject: [PATCH 1/3] jobs_highpop --- code/game/jobs/job_scaling.dm | 10 +++++++++ config/example/jobs_highpop.txt | 37 +++++++++++++++++++++++++++++++++ paradise.dme | 1 + 3 files changed, 48 insertions(+) create mode 100644 code/game/jobs/job_scaling.dm create mode 100644 config/example/jobs_highpop.txt diff --git a/code/game/jobs/job_scaling.dm b/code/game/jobs/job_scaling.dm new file mode 100644 index 00000000000..9409e8b0c39 --- /dev/null +++ b/code/game/jobs/job_scaling.dm @@ -0,0 +1,10 @@ +/hook/roundstart/proc/jobscaling() + sleep(10 SECONDS) // give everyone time to finish spawning, and the lag to die down + var/playercount = length(clients) + var/highpop_trigger = 80 + + if(playercount >= highpop_trigger) + log_debug("Playercount: [playercount] versus trigger: [highpop_trigger] - loading highpop job config"); + job_master.LoadJobs("config/jobs_highpop.txt") + else + log_debug("Playercount: [playercount] versus trigger: [highpop_trigger] - keeping standard job config"); diff --git a/config/example/jobs_highpop.txt b/config/example/jobs_highpop.txt new file mode 100644 index 00000000000..5817feeff8e --- /dev/null +++ b/config/example/jobs_highpop.txt @@ -0,0 +1,37 @@ +Captain=1 +Head of Personnel=1 +Head of Security=1 +Chief Engineer=1 +Research Director=1 +Chief Medical Officer=1 + +Station Engineer=7 +Roboticist=1 + +Medical Doctor=7 +Geneticist=2 +Virologist=1 + +Scientist=5 +Chemist=2 + +Bartender=1 +Botanist=2 +Chef=1 +Janitor=2 +Quartermaster=1 +Shaft Miner=5 + +Warden=1 +Detective=1 +Security Officer=9 + +Assistant=-1 +Atmospheric Technician=4 +Cargo Technician=5 +Chaplain=1 +Lawyer=2 +Librarian=1 + +AI=1 +Cyborg=1 \ No newline at end of file diff --git a/paradise.dme b/paradise.dme index fd478a69e07..4cbaf9cb6de 100644 --- a/paradise.dme +++ b/paradise.dme @@ -527,6 +527,7 @@ #include "code\game\jobs\job_controller.dm" #include "code\game\jobs\job_exp.dm" #include "code\game\jobs\job_objective.dm" +#include "code\game\jobs\job_scaling.dm" #include "code\game\jobs\jobs.dm" #include "code\game\jobs\whitelist.dm" #include "code\game\jobs\job\central.dm" From 108a873a39bc8c7b2e7b1f7280bcf64810d27593 Mon Sep 17 00:00:00 2001 From: Kyep Date: Tue, 8 May 2018 20:14:58 -0700 Subject: [PATCH 2/3] retval --- code/game/jobs/job_scaling.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/jobs/job_scaling.dm b/code/game/jobs/job_scaling.dm index 9409e8b0c39..7d8804783f1 100644 --- a/code/game/jobs/job_scaling.dm +++ b/code/game/jobs/job_scaling.dm @@ -8,3 +8,4 @@ job_master.LoadJobs("config/jobs_highpop.txt") else log_debug("Playercount: [playercount] versus trigger: [highpop_trigger] - keeping standard job config"); + return 1 \ No newline at end of file From 8500fd253aabfa68962300d4bc6279d36ee5cdfd Mon Sep 17 00:00:00 2001 From: Kyep Date: Wed, 13 Jun 2018 15:19:05 -0700 Subject: [PATCH 3/3] replace jobs_highpop.txt with copy of jobs.txt --- config/example/jobs_highpop.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/example/jobs_highpop.txt b/config/example/jobs_highpop.txt index 5817feeff8e..962803ab886 100644 --- a/config/example/jobs_highpop.txt +++ b/config/example/jobs_highpop.txt @@ -5,30 +5,30 @@ Chief Engineer=1 Research Director=1 Chief Medical Officer=1 -Station Engineer=7 +Station Engineer=5 Roboticist=1 -Medical Doctor=7 +Medical Doctor=5 Geneticist=2 Virologist=1 -Scientist=5 +Scientist=3 Chemist=2 Bartender=1 Botanist=2 Chef=1 -Janitor=2 +Janitor=1 Quartermaster=1 -Shaft Miner=5 +Shaft Miner=3 Warden=1 Detective=1 -Security Officer=9 +Security Officer=7 Assistant=-1 Atmospheric Technician=4 -Cargo Technician=5 +Cargo Technician=3 Chaplain=1 Lawyer=2 Librarian=1