Started work on NPC dialogues
[butaba-adventures.git] / npcs.py
diff --git a/npcs.py b/npcs.py
index ae781da..d368833 100644 (file)
--- a/npcs.py
+++ b/npcs.py
@@ -6,7 +6,7 @@ import os.path
 
 class NPC:
        # initalize the NPC
-       def __init__ (self, charname, row, col, image=None, portrait=None, dialogue_set=set(),
+       def __init__ (self, charname, row, col, image=None, portrait=None, dialogues=[],
                                currentdialog=0, is_dead=False):
                # name of the character
                self.charname = charname
@@ -19,7 +19,7 @@ class NPC:
                self.portrait = portrait
                # dialogue set for NPC
                # each dialogue in the set is a path to an XML file containing the dialogue
-               self.dialogue_set = dialogue_set
+               self.dialogues = dialogues
                # index of the current dialogue which will be initiated with the main
                # character
                self.currentdialog = currentdialog
@@ -29,6 +29,6 @@ class NPC:
 
 # Bulisa is Butaba's friend
 class Bulisa (NPC):
-       def __init__ (self, row, col, image, portrait, dialogue_set=set(), currentdialog=0):
-               NPC.__init__ (self, "Bulisa", row, col, image, portrait, dialogue_set, currentdialog)
+       def __init__ (self, row, col, image, portrait, dialogues=[], currentdialog=0):
+               NPC.__init__ (self, "Bulisa", row, col, image, portrait, dialogues, currentdialog)