From a665854086190bebbfb99260ecdd7d50439029e9 Mon Sep 17 00:00:00 2001 From: Jack Urbanek Date: Tue, 7 Sep 2021 16:48:59 -0400 Subject: [PATCH] Fixing npc assignment bug --- light/graph/structured_graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/light/graph/structured_graph.py b/light/graph/structured_graph.py index 4430f3796..dcd312370 100644 --- a/light/graph/structured_graph.py +++ b/light/graph/structured_graph.py @@ -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):