Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Fixing npc assignment bug #263

Merged
merged 1 commit into from
Sep 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion light/graph/structured_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ def get_npcs(self):
"""Get a list of agent nodes that aren't currently being played by
a human character"""
return [
x for x in self.agents.values() if x.is_player and not x.get_prop("dead")
x
for x in self.agents.values()
if not x.is_player and not x.get_prop("dead")
]

def set_desc(self, id, desc):
Expand Down