Mercurial > parpg-core
diff src/parpg/dialoguecontroller.py @ 78:c25c734bd2a7
Modifications to make talking with npcs possible again. Special actions won't work yet though.
author | KarstenBock@gmx.net |
---|---|
date | Thu, 08 Sep 2011 15:18:39 +0200 |
parents | ad75fa042b99 |
children |
line wrap: on
line diff
--- a/src/parpg/dialoguecontroller.py Thu Sep 08 15:17:28 2011 +0200 +++ b/src/parpg/dialoguecontroller.py Thu Sep 08 15:18:39 2011 +0200 @@ -44,7 +44,10 @@ def startTalk(self, npc): if npc.dialogue is not None: self.model.active_map.centerCameraOnPlayer() - npc.talk(self.model.game_state.getObjectById("PlayerCharacter").fifeagent) + npc.fifeagent.behaviour.talk( + self.model.game_state.\ + getObjectById("PlayerCharacter").fifeagent + ) self.dialogue = self.view.hud.showDialogue(npc) self.dialogue.initiateDialogue() self.model.pause(True)