Skip to content

Commit

Permalink
New method added to prevent quest generator from creating blocked que…
Browse files Browse the repository at this point in the history
…st paths.
  • Loading branch information
jwvhewitt committed Jan 11, 2024
1 parent dc97366 commit c33fdcb
Show file tree
Hide file tree
Showing 5 changed files with 465 additions and 385 deletions.
3 changes: 1 addition & 2 deletions game/content/ghplots/challengeplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,7 @@ def _get_challenge_for_npc(self, nart, npc):

def _is_good_npc(self, nart: GHNarrativeRequest, candidate):
return (
isinstance(candidate, gears.base.Character) and candidate not in nart.camp.party and
(not candidate.relationship or gears.relationships.RT_LANCEMATE not in candidate.relationship.tags) and
isinstance(candidate, gears.base.Character) and nart.camp.is_not_lancemate(candidate) and
self._get_challenge_for_npc(nart, candidate)
)

Expand Down
Loading

0 comments on commit c33fdcb

Please sign in to comment.