Mercurial > parpg-core
diff src/parpg/dialogueactions.py @ 192:191f89a22303
Further work on the scripting system.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 13 Nov 2011 17:19:14 +0100 |
parents | 371b17bc9113 |
children |
line wrap: on
line diff
--- a/src/parpg/dialogueactions.py Sun Nov 13 13:37:24 2011 +0100 +++ b/src/parpg/dialogueactions.py Sun Nov 13 17:19:14 2011 +0100 @@ -94,7 +94,6 @@ @type kwargs: dict of objects """ DialogueAction.__init__(self, *args, **kwargs) - self.npc_id = args[0] def __call__(self, game_state): """ @@ -104,7 +103,7 @@ game state. @type game_state: dict of objects """ - npc_id = self.npc_id + npc_id = game_state["npc"].general.identifier # NOTE Technomage 2010-11-13: This print statement seems overly # verbose, so I'm logging it as an INFO message instead. # print("You've met {0}!".format(npc_id))