Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit bc2a3ed

Browse files
authored
Fix break machinery not actually giving you the proper objective to break machinery
1 parent 4ba0893 commit bc2a3ed

File tree

1 file changed

+6
-1
lines changed
  • yogstation/code/modules/antagonists/infiltrator

1 file changed

+6
-1
lines changed

yogstation/code/modules/antagonists/infiltrator/team.dm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@
101101
if(prob(60))
102102
add_objective(/datum/objective/steal)
103103
else
104-
add_objective(/datum/objective/break_machinery)
104+
var/datum/objective/break_machinery/break_objective = new
105+
break_objective.owner = owner
106+
if(break_objective.finalize())
107+
add_objective(break_objective)
108+
else
109+
forge_single_objective()
105110

106111
/datum/team/infiltrator/proc/add_objective(type)
107112
var/datum/objective/O = type

0 commit comments

Comments
 (0)