mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
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:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user