Fixes AI dating

This commit is contained in:
AnturK
2018-02-16 09:35:44 +01:00
parent cede276a7f
commit 38786f96fe
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -214,8 +214,9 @@
explanation_text = "Free Objective"
/datum/objective/protect//The opposite of killing a dude.
var/target_role_type=0
martyr_compatible = 1
var/target_role_type = 0
var/human_check = TRUE
/datum/objective/protect/find_target_by_role(role, role_type=0, invert=0)
if(!invert)
@@ -224,7 +225,7 @@
return target
/datum/objective/protect/check_completion()
return !target || considered_alive(target)
return !target || considered_alive(target, enforce_human = human_check)
/datum/objective/protect/update_explanation_text()
..()
@@ -233,6 +234,9 @@
else
explanation_text = "Free Objective"
/datum/objective/protect/nonhuman
human_check = FALSE
/datum/objective/hijack
explanation_text = "Hijack the shuttle to ensure no loyalist Nanotrasen crew escape alive and out of custody."
team_explanation_text = "Hijack the shuttle to ensure no loyalist Nanotrasen crew escape alive and out of custody. Leave no team member behind."
@@ -8,6 +8,8 @@
var/datum/objective/protect/protect_objective = new /datum/objective/protect
protect_objective.owner = owner
protect_objective.target = date
if(!ishuman(date.current))
protect_objective.human_check = FALSE
protect_objective.explanation_text = "Protect [date.name], your date."
objectives += protect_objective
owner.objectives += objectives