From bfb4c122b54ed8d51fa494964665c0bd2f255231 Mon Sep 17 00:00:00 2001 From: Lord Lag Date: Fri, 19 Feb 2016 15:41:29 +0000 Subject: [PATCH] Fixes #144 Only 40% experimental! --- code/game/gamemodes/malfunction/malfunction.dm | 10 ++++++++++ html/changelogs/[Lord Lag]-[Fixes #144].yml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 html/changelogs/[Lord Lag]-[Fixes #144].yml diff --git a/code/game/gamemodes/malfunction/malfunction.dm b/code/game/gamemodes/malfunction/malfunction.dm index 35646524f09..8fcf557a939 100644 --- a/code/game/gamemodes/malfunction/malfunction.dm +++ b/code/game/gamemodes/malfunction/malfunction.dm @@ -10,3 +10,13 @@ auto_recall_shuttle = 0 antag_tags = list(MODE_MALFUNCTION) disabled_jobs = list("AI") + + +/datum/game_mode/malfunction/post_setup() + var/malf_ai = select_active_ai_with_fewest_borgs() + if (malf_ai) + for (var/mob/living/silicon/robot/borg in world) + borg.lawupdate = 1 + borg.connect_to_ai(malf_ai) + else + error("Unable to locate the Malf AI during post_setp()!") \ No newline at end of file diff --git a/html/changelogs/[Lord Lag]-[Fixes #144].yml b/html/changelogs/[Lord Lag]-[Fixes #144].yml new file mode 100644 index 00000000000..c2674cabdee --- /dev/null +++ b/html/changelogs/[Lord Lag]-[Fixes #144].yml @@ -0,0 +1,6 @@ +author: Lord Lag + +delete-after: True + +changes: + - bugfix: "Added a changelog editing system that should cause fewer conflicts and more accurate timestamps."