From 32cecc6d477000da9c48d012397b76d1353364b4 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:51:25 -0500 Subject: [PATCH] Fixes an issue with the destroy ai objective not updating + adds a stack_trace (#23648) * amazing * okay --- code/game/gamemodes/objective.dm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index a12e8e88542..4cefdc6e39a 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -68,7 +68,7 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) * This is for objectives that have reason to update their text, such as target changes. */ /datum/objective/proc/update_explanation_text() - return + stack_trace("Objective [type]'s update_explanation_text was not overridden.") /** * Get all owners of the objective, including ones from the objective's team, if it has one. @@ -665,11 +665,9 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) update_explanation_text() return target -/datum/objective/destory/update_explanation_text() - var/target_real_name +/datum/objective/destroy/update_explanation_text() if(target?.current) - target_real_name = target.current.real_name - explanation_text = "Destroy [target_real_name], the AI." + explanation_text = "Destroy [target.current.real_name], the AI." else explanation_text = "Free Objective"