diff gui/hud.py @ 80:d0b600d7136c

Added pc_has and npc_has as functions to the dialogue engine. These replace calls to pc.has_item and ncp.has_item.
author KarstenBock@gmx.net
date Fri, 23 Sep 2011 14:11:49 +0200
parents 535801aec63e
children 100a39fa64a2
line wrap: on
line diff
--- a/gui/hud.py	Fri Sep 23 13:35:44 2011 +0200
+++ b/gui/hud.py	Fri Sep 23 14:11:49 2011 +0200
@@ -28,7 +28,7 @@
 from parpg.gui import drag_drop_data as data_drag
 from parpg.gui.inventorygui import InventoryGUI
 from actionsbox import ActionsBox
-
+from parpg.components import container
 logger = logging.getLogger('hud')
 class Hud(object):
     """Main Hud class"""
@@ -509,5 +509,6 @@
                     npc,
                     self.model.game_state.quest_engine,
                     self.model.game_state.met, self.model.game_state.meet,
+                    container.get_item,
                     self.model.game_state.getObjectById("PlayerCharacter"))
         return dialogue