From fa05fa85bea75a0215531127cbc5a3d009164c57 Mon Sep 17 00:00:00 2001 From: SarmentiCampbell <61919894+SarmentiCampbell@users.noreply.github.com> Date: Fri, 28 Oct 2022 03:47:54 +0200 Subject: [PATCH] Latejoin cyborgs now correctly sync with the AI. (#17143) It work, surprisely. --- code/modules/jobs/job_types/ai.dm | 1 + code/modules/jobs/job_types/cyborg.dm | 1 + 2 files changed, 2 insertions(+) diff --git a/code/modules/jobs/job_types/ai.dm b/code/modules/jobs/job_types/ai.dm index 6d99d5eacf7..3a3a401e84b 100644 --- a/code/modules/jobs/job_types/ai.dm +++ b/code/modules/jobs/job_types/ai.dm @@ -55,6 +55,7 @@ sync_target.visible_message(span_notice("[sync_target] gently chimes."), span_notice("LawSync protocol engaged.")) log_combat(ai_spawn, sync_target, "forcibly synced cyborg laws via spawning in") sync_target.lawsync() + sync_target.lawupdate = TRUE sync_target.show_laws() // SKYRAT EDIT ADDITION END diff --git a/code/modules/jobs/job_types/cyborg.dm b/code/modules/jobs/job_types/cyborg.dm index d8153187f16..785db5e8a31 100644 --- a/code/modules/jobs/job_types/cyborg.dm +++ b/code/modules/jobs/job_types/cyborg.dm @@ -53,6 +53,7 @@ robot_spawn.notify_ai(TRUE) robot_spawn.visible_message(span_notice("[robot_spawn] gently chimes."), span_notice("LawSync protocol engaged.")) robot_spawn.lawsync() + robot_spawn.lawupdate = TRUE robot_spawn.show_laws() //SKYRAT EDIT END if(!robot_spawn.connected_ai) // Only log if there's no Master AI