Ignore:
Timestamp:
02/22/11 19:09:01 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

+ fixed bug caused by an object not having a description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/objects/action.py

    r736 r739  
    173173class ExamineAction(Action): 
    174174    """Examine an object.""" 
    175     def __init__(self, controller, examine_id, examine_name, examine_desc, commands = None): 
     175    def __init__(self, controller, examine_id, examine_name, examine_desc=None, commands=None): 
    176176        """ 
    177177        @param controller: A reference to the GameSceneController. 
     
    193193        self.examine_id = examine_id 
    194194        self.examine_name = examine_name 
    195         self.examine_desc = examine_desc 
     195        if examine_desc is not None: 
     196            self.examine_desc = examine_desc 
     197        else: 
     198            self.examine_desc = "No Description" 
    196199         
    197200    def execute(self): 
Note: See TracChangeset for help on using the changeset viewer.