Default AI shell on the map will be a flying module.

This commit is contained in:
MistakeNot4892
2023-08-07 11:02:32 +10:00
parent 1f7a411868
commit 7a6bf8ea74
2 changed files with 12 additions and 3 deletions
@@ -7,12 +7,17 @@ GLOBAL_LIST_EMPTY(available_ai_shells)
var/deployed = FALSE
var/mob/living/silicon/ai/mainframe = null
// Premade AI shell, for roundstart shells.
// Premade AI shells, for roundstart landmark spawn.
/mob/living/silicon/robot/ai_shell/Initialize()
mmi = new /obj/item/mmi/inert/ai_remote(src)
post_mmi_setup()
return ..()
/mob/living/silicon/robot/flying/ai_shell/Initialize()
mmi = new /obj/item/mmi/inert/ai_remote(src)
post_mmi_setup()
return ..()
// Call after inserting or instantiating an MMI.
/mob/living/silicon/robot/proc/post_mmi_setup()
if(istype(mmi, /obj/item/mmi/inert/ai_remote))
@@ -128,8 +133,12 @@ GLOBAL_LIST_EMPTY(available_ai_shells)
icon = 'icons/mob/screen1.dmi'
icon_state = "x3"
delete_me = TRUE
var/robot_type = /mob/living/silicon/robot/ai_shell
/obj/effect/landmark/free_ai_shell/Initialize()
if(config.allow_ai_shells && config.give_free_ai_shell)
new /mob/living/silicon/robot/ai_shell(get_turf(src))
new shell_type(get_turf(src))
return ..()
/obj/effect/landmark/free_ai_shell/flying
robot_type = /mob/living/silicon/robot/flying/ai_shell