Changeset 147
Legend:
- Unmodified
- Added
- Removed
-
adventure/thing.py
r144 r147 166 166 target = player 167 167 if target: 168 if action['count'] or target.inventory.count(params) < count:168 if not action['count'] or target.inventory.count(params) < count: 169 169 target.inventory.append(params) 170 170 # <use target="target">object</give> -
adventure/world.py
r143 r147 296 296 tag_invite.getAttr('to')) 297 297 elif msg.getTo().getResource() == 'Bag': 298 #TODO: Invetory handling299 298 self.bag_command(player, msg.getBody()) 300 299 return True … … 361 360 if text in ('?', '!help'): 362 361 player.send_message('Help!', '(Command) who') 362 player.send_message('Help!', '(Command) inventory') 363 363 place = player.place 364 364 if place:
