diff src/parpg/gui/hud.py @ 110:5feab6555bf9

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 2e307c4f78e3
children 140e5e93f026
line wrap: on
line diff
--- a/src/parpg/gui/hud.py	Fri Sep 23 13:35:44 2011 +0200
+++ b/src/parpg/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