mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-22 20:57:48 +01:00
cavalry's here
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
/datum/job/ai/after_spawn(mob/living/silicon/ai/AI, client/player_client, latejoin)
|
||||
. = ..()
|
||||
if(!istype(AI))
|
||||
setup_silicon_law_prefs(AI, player_client)
|
||||
|
||||
if(latejoin)
|
||||
return
|
||||
|
||||
setup_silicon_law_prefs(AI, player_client)
|
||||
var/free_shells = CONFIG_GET(number/roundstart_ai_shells)
|
||||
if(!free_shells)
|
||||
return
|
||||
|
||||
var/turf/open/turf = locate() in RANGE_TURFS(1, AI)
|
||||
|
||||
// Why the fuck is the station AI completely blocked
|
||||
var/turf/where = turf || get_turf(AI)
|
||||
|
||||
// Creating AI shells for the AI.
|
||||
for(var/iteration in 1 to free_shells)
|
||||
var/mob/living/silicon/robot/free_borg = new(where)
|
||||
free_borg.shell = TRUE
|
||||
free_borg.TryConnectToAI(AI)
|
||||
|
||||
@@ -1,16 +1,2 @@
|
||||
/mob/living/silicon/ai
|
||||
vore_flags = NO_VORE
|
||||
|
||||
/mob/living/silicon/ai/Initialize(mapload, datum/ai_laws/L, mob/target_ai)
|
||||
. = ..()
|
||||
if (!mapload)
|
||||
return
|
||||
|
||||
// Creating a AI shell for the AI.
|
||||
var/turf/open/T = locate() in RANGE_TURFS(1, src)
|
||||
if (T)
|
||||
new /mob/living/silicon/robot/shell(T)
|
||||
return
|
||||
|
||||
// Why the fuck is the station AI completely blocked
|
||||
new /mob/living/silicon/robot/shell(get_turf(src))
|
||||
|
||||
Reference in New Issue
Block a user