From 0334e86e05649c73ff70f4ff169fe8ba1dfdcd24 Mon Sep 17 00:00:00 2001 From: Odairu <39929315+Odairu@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:18:10 -0500 Subject: [PATCH] Fixes an incorrect variable causing borgs to spawn without malf laws (#2630) ## About The Pull Request Title ## Why It's Good For The Game Bugs suck ass, and I'm the king of making them (and squashing them) ## Proof Of Testing ![image](https://github.com/user-attachments/assets/6135d940-f7e6-4ca9-8af6-528ea7c86fb1)
Screenshots/Videos
## Changelog :cl: fix:Borgs spawn with malf laws now /:cl: --- code/modules/jobs/job_types/cyborg.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/jobs/job_types/cyborg.dm b/code/modules/jobs/job_types/cyborg.dm index da9c982c0a4..81f600347e6 100644 --- a/code/modules/jobs/job_types/cyborg.dm +++ b/code/modules/jobs/job_types/cyborg.dm @@ -30,17 +30,17 @@ var/mob/living/silicon/robot/robot_spawn = spawned robot_spawn.notify_ai(AI_NOTIFICATION_NEW_BORG) //SKYRAT EDIT START - robot_spawn.set_connected_ai(select_active_ai_with_fewest_borgs(robot_spawn.z)) - if(robot_spawn.mainframe) - log_combat(robot_spawn.mainframe, robot_spawn, "synced cyborg [robot_spawn] to [robot_spawn.mainframe] (Cyborg spawn syncage)") // BUBBER EDIT - PUBLIC LOGS AND CLEANUP + robot_spawn.set_connected_ai(select_active_ai_with_fewest_borgs()) + if(robot_spawn.connected_ai) + log_combat(robot_spawn.connected_ai, robot_spawn, "synced cyborg [robot_spawn] to [robot_spawn.connected_ai] (Cyborg spawn syncage)") // BUBBER EDIT - PUBLIC LOGS AND CLEANUP if(robot_spawn.shell) //somehow? robot_spawn.undeploy() robot_spawn.notify_ai(AI_NOTIFICATION_AI_SHELL) else 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.lawsync() robot_spawn.show_laws() //SKYRAT EDIT END if(!robot_spawn.connected_ai) // Only log if there's no Master AI