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)
<details>
<summary>Screenshots/Videos</summary>

</details>

## Changelog
🆑
fix:Borgs spawn with malf laws now
/🆑
This commit is contained in:
Odairu
2024-12-07 16:17:30 -07:00
committed by StrangeWeirdKitten
parent 6c46f327ae
commit 0334e86e05
+4 -4
View File
@@ -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