Ignore:
Timestamp:
12/21/10 18:05:57 (9 years ago)
Author:
technomage
Message:

Patch by Aspidites

  • Renamed the 'dialogue_sections' parameter in Dialogue's constructor to 'sections' for clarity, since the 'dialogue_sections' parameter is stored in Dialogue.section;
  • Updated constructor keywords for Dialogue's constructor in dialogueparsers.py;
  • Removed an extraneous 'return' statement in DialogueProcessor?.runDialogueActions;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/dialogue.py

    r685 r690  
    3333     
    3434    def __init__(self, npc_name, avatar_path, start_section_id, 
    35                  dialogue_sections=None): 
     35                 sections=None): 
    3636        """ 
    3737        Initialize a new L{Dialogue} instance. 
     
    4545            displayed when the dialogue is first initiated. 
    4646        @type start_section_id: basestring 
    47         @param dialogue_sections: sections of dialogue that make up this 
     47        @param sections: sections of dialogue that make up this 
    4848            L{Dialogue} instance. 
    49         @type dialogue_sections: list of L{DialogueSections<DialogueSection>} 
     49        @type sections: list of L{DialogueSections<DialogueSection>} 
    5050        """ 
    5151        self.npc_name = npc_name 
     
    5353        self.sections = OrderedDict() 
    5454        if (__debug__): 
    55             section_ids = [section.id for section in dialogue_sections] 
    56         if (dialogue_sections is not None): 
     55            section_ids = [section.id for section in sections] 
     56        if (sections is not None): 
    5757            # Sanity check: All DialogueResponses should have next_section_id 
    5858            # attributes that refer to valid DialogueSections in the Dialogue. 
    59             for section in dialogue_sections: 
     59            for section in sections: 
    6060                if (__debug__): 
    6161                    for response in section.responses: 
Note: See TracChangeset for help on using the changeset viewer.