mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
copy ai bellieso n first transfer and keep prefs synced (#15886)
This commit is contained in:
@@ -57,6 +57,12 @@
|
||||
deployed_shell = target
|
||||
target.deploy_init(src)
|
||||
mind.transfer_to(target)
|
||||
if(target.first_transfer)
|
||||
target.first_transfer = FALSE
|
||||
target.copy_from_prefs_vr()
|
||||
if(LAZYLEN(target.vore_organs))
|
||||
target.vore_selected = target.vore_organs[1]
|
||||
src.copy_vore_prefs_to_mob(target)
|
||||
teleop = target // So the AI 'hears' messages near its core.
|
||||
target.post_deploy()
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ GLOBAL_LIST_EMPTY(available_ai_shells)
|
||||
var/shell = FALSE
|
||||
var/deployed = FALSE
|
||||
var/mob/living/silicon/ai/mainframe = null
|
||||
var/first_transfer = TRUE
|
||||
|
||||
// Premade AI shell, for roundstart shells.
|
||||
/mob/living/silicon/robot/ai_shell/Initialize()
|
||||
@@ -89,6 +90,7 @@ GLOBAL_LIST_EMPTY(available_ai_shells)
|
||||
if(message)
|
||||
to_chat(src, span("notice", message))
|
||||
mind.transfer_to(mainframe)
|
||||
src.copy_vore_prefs_to_mob(mainframe)
|
||||
deployed = FALSE
|
||||
update_icon()
|
||||
mainframe.teleop = null
|
||||
|
||||
Reference in New Issue
Block a user