Merge pull request #9620 from variableundefined/GearSpawn

Fixes latejoin AI spawning in arrivals
This commit is contained in:
Crazy Lemon
2018-09-28 00:10:30 -07:00
committed by GitHub
2 changed files with 39 additions and 32 deletions
+1 -2
View File
@@ -316,11 +316,10 @@
job_master.AssignRole(src, rank, 1)
var/mob/living/character = create_character() //creates the human and transfers vars and mind
character = job_master.AssignRank(character, rank, 1) //equips the human
// AIs don't need a spawnpoint, they must spawn at an empty core
if(character.mind.assigned_role == "AI")
var/mob/living/silicon/ai/ai_character = character.AIize() // AIize the character, but don't move them yet
// IsJobAvailable for AI checks that there is an empty core available in this list