Changeset 147

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

Un « not » oublié...

Location:
adventure
Files:
2 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> 
  • adventure/world.py

    r143 r147  
    296296                                         tag_invite.getAttr('to')) 
    297297        elif msg.getTo().getResource() == 'Bag': 
    298             #TODO: Invetory handling 
    299298            self.bag_command(player, msg.getBody()) 
    300299            return True 
     
    361360        if text in ('?', '!help'): 
    362361            player.send_message('Help!', '(Command) who') 
     362            player.send_message('Help!', '(Command) inventory') 
    363363            place = player.place 
    364364            if place: