Mercurial > parpg-source
diff dialoguecontroller.py @ 51:d3a9caba067b
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 | 98f26f7636d8 |
children |
line wrap: on
line diff
--- a/dialoguecontroller.py Thu Sep 08 15:17:28 2011 +0200 +++ b/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)