Changeset 147 for adventure/thing.py

Show
Ignore:
Timestamp:
04/26/08 20:26:49 (2 years ago)
Author:
thib
Message:

Un « not » oublié...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • adventure/thing.py

    r144 r147  
    166166                target = player 
    167167            if target: 
    168                 if action['count'] or target.inventory.count(params) < count: 
     168                if not action['count'] or target.inventory.count(params) < count: 
    169169                    target.inventory.append(params) 
    170170        #   <use target="target">object</give>