Changeset 151
- Timestamp:
- 04/26/08 21:56:42 (23 months ago)
- Files:
-
- 1 modified
-
adventure/thing.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adventure/thing.py
r150 r151 75 75 76 76 action_obj['target'] = action_element.getAttribute('target') 77 if action_element.has _key('count'):77 if action_element.hasAttribute('count'): 78 78 action_obj['count'] = int(action_element.getAttribute('count')) 79 79 … … 168 168 target = player 169 169 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']: 171 171 target.inventory.append(params) 172 172 # <use target="target">object</give>
