Mercurial > parpg-core
diff src/parpg/gamemodel.py @ 137:140e5e93f026
Added ExamineContentsAction.
Added "Examine Contents" to the context menu, when the object is a container and does not have a characterstats component.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 30 Sep 2011 15:31:53 +0200 |
parents | e1fd4cda237d |
children | c9fba51214ed |
line wrap: on
line diff
--- a/src/parpg/gamemodel.py Fri Sep 30 15:08:53 2011 +0200 +++ b/src/parpg/gamemodel.py Fri Sep 30 15:31:53 2011 +0200 @@ -307,11 +307,12 @@ """Read the agents of the map @param map_name: Name of the map @type map_name: str """ - #Get the agents of the map + #Get the agents of the map map_agents_file = self.map_files[map_name].\ replace(".xml", "_agents.yaml") agents_data = vfs.VFS.open(map_agents_file) agents = yaml.load_all(agents_data) + self.agents[map_name] = {} for agent in agents: if not agent == None: self.addAgent(map_name, agent)