mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Fixes an issue with the destroy ai objective not updating + adds a stack_trace (#23648)
* amazing * okay
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user