Ignore:
Timestamp:
10/14/09 18:20:57 (10 years ago)
Author:
orlandov
Message:

Ticket #93: Patch by or1andov. Use the name attribute for on mouse over text. fixes[s:trac, t:93]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/actors.py

    r323 r324  
    236236    NPC class 
    237237    """ 
    238     def __init__(self, ID, agent_layer = None, name = 'NPC', \ 
     238    def __init__(self, ID, agent_layer=None, name='NPC', \ 
    239239                 text = 'A nonplayer character', **kwargs): 
    240240        # init game object 
    241         GameObject.__init__( self, ID, **kwargs ) 
    242         Living.__init__( self, **kwargs ) 
    243         Scriptable.__init__( self, **kwargs ) 
    244         CharStats.__init__( self, **kwargs ) 
     241        GameObject.__init__(self, ID, name=name, **kwargs) 
     242        Living.__init__(self, **kwargs) 
     243        Scriptable.__init__(self, **kwargs) 
     244        CharStats.__init__(self, **kwargs) 
    245245 
    246246        self.is_NPC = True 
Note: See TracChangeset for help on using the changeset viewer.