From 89ccc6b8cc5ca93c561a74a2d7539bfa88fbbd44 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Mon, 3 Oct 2022 00:23:24 -0400 Subject: [PATCH] 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 bb0f6845795cd15f9354f06a0226573d406d4ace. * why the FUCK does this work? Why no immutable --- code/datums/mind.dm | 2 ++ code/modules/antagonists/changeling/datum_changeling.dm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 53576887361..9b66d720a87 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -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) diff --git a/code/modules/antagonists/changeling/datum_changeling.dm b/code/modules/antagonists/changeling/datum_changeling.dm index f380f3aed15..cc971efe0d2 100644 --- a/code/modules/antagonists/changeling/datum_changeling.dm +++ b/code/modules/antagonists/changeling/datum_changeling.dm @@ -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)