Mercurial > parpg-source
diff gamemodel.py @ 107:100a39fa64a2
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 | edadf3ff8a9a |
children | 81b51b9d861e |
line wrap: on
line diff
--- a/gamemodel.py Fri Sep 30 15:08:53 2011 +0200 +++ b/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)