properly fixes crew objective paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user