Skip to content

Commit

Permalink
[MIRROR] Fix hack comms console/locate weakpoint objective showing up…
Browse files Browse the repository at this point in the history
… multiple times (#1544)

* Fix hack comms console/locate weakpoint objective showing up multiple times (#82083)

## About The Pull Request

![image](https://github.com/tgstation/tgstation/assets/66163761/6bb017ca-f6e1-4b95-90e4-9f3ae1e84eb4)
Fix hack comms console/locate weakpoint objective showing up multiple
times
## Why It's Good For The Game
bugfix
## Changelog
:cl:
fix: Fix hack comms console/locate weakpoint objective showing up
multiple times
/:cl:

* Fix hack comms console/locate weakpoint objective showing up multiple times

---------

Co-authored-by: Xander3359 <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Mar 20, 2024
1 parent 9dbc5f4 commit e5e0fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
var/progression_objectives_minimum = 20 MINUTES

/datum/traitor_objective/hack_comm_console/can_generate_objective(datum/mind/generating_for, list/possible_duplicates)
if(length(possible_duplicates) > 0)
return FALSE
if(SStraitor.get_taken_count(/datum/traitor_objective/hack_comm_console) > 0)
return FALSE
if(handler.get_completion_progression(/datum/traitor_objective) < progression_objectives_minimum)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
var/area/weakpoint_area

/datum/traitor_objective/locate_weakpoint/can_generate_objective(datum/mind/generating_for, list/possible_duplicates)
if(length(possible_duplicates) > 0)
return FALSE
if(handler.get_completion_progression(/datum/traitor_objective) < progression_objectives_minimum)
return FALSE
if(SStraitor.get_taken_count(/datum/traitor_objective/locate_weakpoint) > 0)
Expand Down

0 comments on commit e5e0fa5

Please sign in to comment.