Changeset 151

Show
Ignore:
Timestamp:
04/26/08 21:56:42 (2 years ago)
Author:
thib
Message:

Un jour, j'y arriverai

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • adventure/thing.py

    r150 r151  
    7575         
    7676        action_obj['target'] = action_element.getAttribute('target') 
    77         if action_element.has_key('count'): 
     77        if action_element.hasAttribute('count'): 
    7878            action_obj['count'] = int(action_element.getAttribute('count')) 
    7979         
     
    168168                target = player 
    169169            if target: 
    170                 if not action.has_key('count') or target.inventory.count(params) < action['count']: 
     170                if not 'count' in action or target.inventory.count(params) < action['count']: 
    171171                    target.inventory.append(params) 
    172172        #   <use target="target">object</give>