properly fixes crew objective paths

This commit is contained in:
deathride58
2017-09-04 05:49:31 -04:00
parent 6af0856de1
commit b9712da5c8

View File

@@ -13,7 +13,7 @@
return
if(!crewMind.assigned_role)
return
var/rolePathString = "/datum/objective/crew/[crewMind.assigned_role]"
var/rolePathString = "/datum/objective/crew/[ckey(crewMind.assigned_role)]"
var/rolePath = text2path(rolePathString)
if (isnull(rolePath))
return
@@ -33,12 +33,12 @@
/datum/objective/crew/proc/setup()
/datum/objective/crew/Captain/
/datum/objective/crew/captain/
/datum/objective/crew/Captain/hat
/datum/objective/crew/captain/hat
explanation_text = "Don't lose your hat."
/datum/objective/crew/Captain/hat/check_completion()
/datum/objective/crew/captain/hat/check_completion()
if(owner.current && owner.current.check_contents_for(/obj/item/clothing/head/caphat))
return 1
else