Fixes a missing variable on a changeling objective (#19186)

* I cant use : here, maintainers would kill me

* this really needs a comment, mhm for sure

* Revert "I cant use : here, maintainers would kill me"

This reverts commit bb0f684579.

* why the FUCK does this work? Why no immutable
This commit is contained in:
Contrabang
2022-10-03 00:23:24 -04:00
committed by GitHub
parent e7e96ca391
commit 89ccc6b8cc
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -736,6 +736,8 @@
new_objective.owner = src
new_objective.target = new_target
new_objective.explanation_text = "Escape on the shuttle or an escape pod with the identity of [targ.current.real_name], the [targ.assigned_role] while wearing [targ.current.p_their()] identification card."
var/datum/objective/escape/escape_with_identity/O = new_objective
O.target_real_name = new_objective.target.current.real_name
if("custom")
var/expl = sanitize(copytext(input("Custom objective:", "Objective", objective ? objective.explanation_text : "") as text|null,1,MAX_MESSAGE_LEN))
if(!expl)
@@ -162,7 +162,7 @@
if(prob(70))
add_objective(/datum/objective/escape)
else
add_objective(/datum/objective/escape/escape_with_identity)
add_objective(/datum/objective/escape/escape_with_identity) // If our kill target has no genes, 30% time pick someone else to steal the identity of
/datum/antagonist/changeling/process()
if(!owner || !owner.current)