Fixes some objective issues (#30968)

* Fixes some objective issues

* Update code/modules/antagonists/traitor/datum_traitor.dm

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
DGamerL
2025-11-12 15:49:53 +01:00
committed by GitHub
parent a843cee85f
commit c5aec06e34
2 changed files with 3 additions and 2 deletions
@@ -151,9 +151,10 @@ RESTRICT_TYPE(/datum/antagonist/traitor)
var/can_succeed_if_dead = TRUE
// If our org has forced objectives, give them to us guaranteed.
if(organization && length(organization.forced_objectives))
var/list/instant_known_objs = list(/datum/objective/hijack, /datum/objective/nuke)
for(var/forced_objectives in organization.forced_objectives)
var/datum/objective/forced_obj = forced_objectives
if(!ispath(forced_obj, /datum/objective/hijack) && delayed_objectives) // Hijackers know their objective immediately
if(!is_path_in_list(forced_obj, instant_known_objs) && delayed_objectives) // Some objectives are known instantly
forced_obj = new /datum/objective/delayed(forced_obj)
add_antag_objective(forced_obj)
iteration++