properly fixes crew objective paths
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
return
|
return
|
||||||
if(!crewMind.assigned_role)
|
if(!crewMind.assigned_role)
|
||||||
return
|
return
|
||||||
var/rolePathString = "/datum/objective/crew/[crewMind.assigned_role]"
|
var/rolePathString = "/datum/objective/crew/[ckey(crewMind.assigned_role)]"
|
||||||
var/rolePath = text2path(rolePathString)
|
var/rolePath = text2path(rolePathString)
|
||||||
if (isnull(rolePath))
|
if (isnull(rolePath))
|
||||||
return
|
return
|
||||||
@@ -33,12 +33,12 @@
|
|||||||
|
|
||||||
/datum/objective/crew/proc/setup()
|
/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."
|
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))
|
if(owner.current && owner.current.check_contents_for(/obj/item/clothing/head/caphat))
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user